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.
Hello Friends
I need Rank wise Cumulative Frequency of Calculate Percentage based on Column total
I have a data like below image and i want Each Product Percentage (%Products) of Total products (#Products) and also needs cumulative frequency (%Total) of Each Product Percentage (%Products) with Rank
I have followed below steps. I got output like 1st image , but if i dont give rank range in filter output is perfect, when i apply rank range in filter, (%Total) not getting changing according to (%Products) Values. Check it 2nd image
Appreciate if anyone can give solution
Thanks in Advance
Hi @harib ,
I found a way to do this, please see below photo:
New Column:
RANK1 = RANKX(ALL(Table1),[# Products])
New Measure:
# Products = SUM(Table1[Products])
Measure = CALCULATE([# Products],FILTER(ALL(Table1[RANK1],Table1[Values]),Table1[RANK1] <= MAX(Table1[RANK1])))
Show the percentage for Measure in the table.
Please try.
Aiolos Zhao
Proud to be a Super User!
HI Aiolos Zhao
Can u share the Sample PBIX file. I'm trying to get it, but rank field showing 1 for all.
Seems your logic looks good.
Thanks
Hi @harib ,
It seems that not all member can upload the pbix on the community.
I think if you also use the all(table), you won't get the 1 for all.
And you need to use RANKX(all(table),a measure name which calculate sum(product))
You can not use the sum() into rankx directly.
If it's also wrong ,could you please share your expression?
thanks.
Aiolos Zhao
Proud to be a Super User!
HI Aiolos Zhao
I have followed the steps which u have provided, but Rank columns showing error like below image.
Then i have created Rank in measure . It's working fine, but when i try to create Measure it's not taking the Rank measure.see below image
Kindly give me the solution
Thanks
Seems it shows "A circular depandency was detected : Table Column",
do you have a column named "Column"? if yes, please delete it then try again.
Aiolos Zhao
Proud to be a Super User!
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |