Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello ,
Below is Data
PlayArea | PublishDateKey | ID | ContentViews | rank | Cumulative | Total Sum | cummulative 85 Perc | flag(Cumulative <Total Sum per Play Area) |
Accelerate | 20250404 | 123a | 147 | 1 | 147 | 362 | 308 | 1 |
Accelerate | 20250402 | 124b | 65 | 2 | 212 | 362 | 308 | 1 |
Accelerate | 20250425 | 125c | 52 | 3 | 264 | 362 | 308 | 1 |
Accelerate | 20250430 | 126d | 36 | 4 | 300 | 362 | 308 | 1 |
Accelerate | 20250410 | 127e | 35 | 5 | 335 | 362 | 308 | 0 |
Accelerate | 20250430 | 128f | 27 | 6 | 362 | 362 | 308 | 0 |
Output Required
Total Flag | Total Count | % cost contributing 85% of total cost per Solution Area |
4 | 6 | 67% |
Below Measures are created but its not working as expected
Hi @atul06 ,
Thanks for reaching out to the Microsoft fabric community forum.
Table name: Play
Step 1: Create Calculated Columns
1. RankPerPlayArea:
RANKX(
FILTER(Play, Play[PlayArea] = EARLIER(Play[PlayArea])),
Play[ContentViews],
,
DESC,
DENSE
)
2. CumulativeContentViews:
CALCULATE(
SUM(Play[ContentViews]),
FILTER(
Play,
Play[PlayArea] = EARLIER(Play[PlayArea]) &&
Play[RankPerPlayArea] <= EARLIER(Play[RankPerPlayArea])
)
)
3. Threshold85Percent:
CALCULATE(
SUM(Play[ContentViews]) * 0.85,
ALLEXCEPT(Play, Play[PlayArea])
)
\
4. CumulativeFlag:
IF(
Play[CumulativeContentViews] <= Play[Threshold85Percent],
1,
0
)
Step 2: Create Measures
1. Total Flag:
CALCULATE(
COUNTROWS(Play),
Play[CumulativeFlag] = 1
)
2. Total Count:
COUNTROWS(Play)
3. % Contributing:
DIVIDE([Total Flag], [Total Count], 0)
Format this measure as Percentage.
Step 3: Visualize the Result
Create a Table visual or Cards:
Fields to Add:
PlayArea (Optional)
Total Flag
Total Count
% Contributing
Explanation of Each Component
RankPerPlayArea: Ranks rows by ContentViews within each PlayArea.
CumulativeContentViews: Adds up views row by row in descending order.
Threshold85Percent: 85% of total views per PlayArea.
CumulativeFlag: Marks rows that are part of first 85% contribution.
Measures: Aggregate totals and compute %.
Please find the below attached .pbix file for your reference.
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Best Regards,
Sreeteja.
Community Support Team
Hi @atul06 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Hi @atul06 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and Accept it as the solution and give a 'Kudos'. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Ashish_Excel ,
Thanks for providng solution . When CV values are the same, the running total calculation becomes incorrect. Ranking should act like rownumber instead of dense rank dynamically
Hi @atul06 ,
Thanks for reaching out to the Microsoft fabric community forum.
Try these steps to Resolve.
Use ROW_NUMBER like behavior
Replace the current [rank] measure with one that creates a unique sequence number even for ties i.e., simulating ROW_NUMBER in DAX.
CumulativeViews Measure =
PercentContributing Measure =
DIVIDE(
CALCULATE(SUMX(VALUES(Play[ID]), [Flag85 Measure])),
CALCULATE(DISTINCTCOUNT(Play[ID]))
)
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it
Best Regards,
Sreeteja.
Community Support Team
Hi @atul06 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and Accept it as the solution and give a 'Kudos'. This will be helpful for other community members who have similar problems to solve it faster.
No this is not working as expected
Hi @atul06 ,
Try these steps -
Create Calculated Columns -
RankPerPlayArea:
RankPerPlayArea = RANKX( FILTER(Play, Play[PlayArea] = EARLIER(Play[PlayArea])), Play[ContentViews], , DESC, DENSE )
CumulativeContentViews:
CumulativeContentViews =
CALCULATE(
SUM(Play[ContentViews]),
FILTER(
Play,
Play[PlayArea] = EARLIER(Play[PlayArea]) &&
Play[RankPerPlayArea] <= EARLIER(Play[RankPerPlayArea])
)
)
Threshold85:
Threshold85 =
CALCULATE(
SUM(Play[ContentViews]) * 0.85,
ALLEXCEPT(Play, Play[PlayArea])
)
CumulativeFlag:
CumulativeFlag =
IF(Play[CumulativeContentViews] <= Play[Threshold85], 1, 0)
Create These Measures for Summary Visual -
TotalFlag :
TotalFlag= CALCULATE(COUNTROWS(Play), Play[CumulativeFlag] = 1)
TotalCount:
TotalCount = COUNTROWS(Play)
%Contributing:
PercentContributing =
DIVIDE([TotalFlag], [TotalCount])
Format PercentContributing as a percentage to clearly showcase your results.
I've verified that the issue is resolved, as my current output aligns perfectly with your expected output.
Find the attached .pbix file for your reference.
I have tried this solution. Its not working
Not surprised. For most rookies, it's even a challenge to copy an out-of-the-box solution to their own scenarios.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |