I have imported a excel spreadsheet that has different metrics (one being % of Revenue), and have added multiple slicers which works perfectly. Only issue is that when I select % of Revenue, it comes out as a decimal number. How can I rectify the below formula?
CY. =
VAR CURRENTITEM = SELECTEDVALUE( ‘Detailed P&L’[Items (Normalized)] )
Thanks for the response @Harsh. But I think the above will transform all the values to %ages? I only want %ages when on my splicer I select % of Revenue metric, if I select “Actual”, it should still show as a number.
In that case you’ll required to calculate two different set of measures one for the Actuals and other one for the % of Revenue.
I’m attaching the PBIX File of my working where I’ve two different sets of measures so that when I select the % of Revenue I can view it as per the required format.
Hoping you find it useful and helps you to achieve the desired analysis.
Alternatively as mentioned by you this is also an option as I’ve also worked it out by using “SWITCH( TRUE() )” function.
I had calculated 2 different measures because that would provide me a leverage of dragging an individual measure if I want an analysis just based on one of them and can also help me sometimes to avoid confusion.
Have attached the file which contains an alternative option as suggested by you.