Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
How do I create a measure to calculate the % of Column Total for the Column y-axis in a stacked column chart but I want to exclude the ">18 Mth" from the stacked column chart. The chart data label should show value as per the following table with the country in x-axis:
Appreciate your sharing. I managed to figure out a much simpler measure that works which I shared below:
Aging % of Total =
VAR ALLAging = Calculate('1_Measures'[Aging INV Value], ALL('Aging Days'))
Return
DIVIDE('1_Measures'[Aging INV Value], ALLAging)
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Ratio: =
VAR _allcount =
COUNTROWS ( Data )
VAR _categorycount =
COUNTROWS (
FILTER (
Data,
Data[Category] >= MIN ( Category[Min] )
&& Data[Category] <= MAX ( Category[Max] )
)
)
RETURN
DIVIDE ( _categorycount, _allcount )
Ratio expected result: =
SUMX(
FILTER(
ADDCOLUMNS( Category, "@ratio", [Ratio:]), Category[Max] <= 18 ), [@ratio] )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
97 | |
79 | |
66 | |
62 |
User | Count |
---|---|
145 | |
113 | |
105 | |
85 | |
65 |