Forum Discussion
Decomposition tree percentages based on first value
- 6 years ago
Hi Anonymous ,
I find a solution for you:
Instead of creating calculated columns,you can create a measure:
Measure 2 = IF ( HASONEFILTER ( 'Table'[category] ), COUNT ( 'Table'[measure] ) / CALCULATE ( COUNT ( 'Table'[measure] ), ALLEXCEPT ( 'Table', 'Table'[Plaza] ) ), COUNT ( 'Table'[measure] ) / CALCULATE ( COUNT ( 'Table'[measure] ), ALL ( 'Table' ) ) )Put measure 2 in the "Analyze" filed, and "plaza" and "category" in the "explain by":
Remember to set measure 2 as percentage:
Finally you will see:
For the related .pbix file,pls click here.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
referring the example from your question can you tell me how you are able to show the exact % value . as if I have data as 70% always on decomposition tree it shows as 0.7. I want it to appear as 70% not happening. can anyone give me solution. I have already set the data type as decimal nd formating as percentage.
Hey Anonymous I think all I did was use the "Show value as" -> "Percent of grand total" when clicking the drop down on your measure. Not sure if that will work for what you are creating...