Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi together,
I got following Problem:
I am trying to build the cumulative sum of a measure, which gives me the count of how often a value appears in my dataset.
This measure is sorted in my table view and starts with the biggest value first and ends with the lowest.
This is what i have:
This is, what i am looking for:
I tried several dax measures, but they all did not work, because the Count of message is already a measure and not just some values in a table.
Thank you!!
Solved! Go to Solution.
Hi @Anonymous ,
I did the test and favor @refint_650 response. If there is no effect of additional filters, the cumulative value can be found by the following two measures.
M_sum = COUNTROWS('Table')
1 = CALCULATE([M_sum],ALL('Table'),'Table'[Category]<=MAX('Table'[Category]))
Can you provide more information about the data model or check for possible filter conditions in the filter. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
this expression worked for me.
@Anonymous
I 'm through same issue, seem there is no straight way to calculate running or cumulative total.
do counts 1st and 2nd step apply sum based on year/month. gotta reseach more
vs
@Anonymous I need to look at how your model is and what you are using on rows? Are you using columns on the rows from the same table on which you have countrows measure.
Check by changing ALL ( Table[Message] ) to ALL ( Table )
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k my table contains a lot of rows. One of the columns of this table is 'message'. There are about 200 different messages in some of this rows, some of them are also blank. The measure, which counts how much of these individually messages appear in my table is simply: COUNT(Table[Message]). This is what you can see in the colums 'Count of Message'. So i am just working with one table..
@Anonymous try this measure
RT =
VAR __cnt = [Count]
RETURN
CALCULATE ( [Count], FILTER ( ALL ('Table'[Message] ), [Count] <= __cnt ) )
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks for your suggestion @parry2k .
Unfortunately this measure gives me the exact same values as the count-function.
Regards, Lennart.
@Anonymous
can you show sample data view for this one in picture format. i guess you have to change filter condition . can you put rough data in excel and share picture.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
90 | |
82 | |
62 | |
61 | |
58 |
User | Count |
---|---|
160 | |
114 | |
100 | |
74 | |
65 |