Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I am trying to create a calculate column using COUNT function to derive the count value of the "Case Number" based on the column of "File Date" grouping.
For some reason my calculate row derived value as showin in column C (count), but that is incorrect.
It should be a value like in column D (The Count that I want). How to write such kind of DAX? Thanks.
Regards,
Aiyo
Solved! Go to Solution.
Measure= calculate (count(tbl[case number]), allexcept(tbl, tbl[case number],tbl[file date]))
Hi @aiyosap ,
Here are the steps you can follow:
1. Create calculated column.
Count_Column = CALCULATE(COUNT('Table'[Case Number]),FILTER(ALL('Table'),'Table'[File Date]=EARLIER('Table'[File Date])&&'Table'[Case Number]=EARLIER('Table'[Case Number])))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @aiyosap ,
Here are the steps you can follow:
1. Create calculated column.
Count_Column = CALCULATE(COUNT('Table'[Case Number]),FILTER(ALL('Table'),'Table'[File Date]=EARLIER('Table'[File Date])&&'Table'[Case Number]=EARLIER('Table'[Case Number])))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Liu,
Why the need for an ALL() in your answer? I tried it in my context without the ALL() and it appears to work. But you had something in mind presumably that I might not be experiencing (yet!) but would like to know what it is.
Thanks in advance.
Measure= calculate (count(tbl[case number]), allexcept(tbl, tbl[case number],tbl[file date]))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
64 | |
51 | |
37 | |
26 |
User | Count |
---|---|
85 | |
55 | |
45 | |
44 | |
35 |