Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am trying to count distinct values in a by date and create a new measure that calculates the cumulative sum of the distinct counts as the time period progresses: The table on the left is representative of my data table. The table on the right is what I would like to my counts to look like.
Any help you can provide is appreciated!!
Solved! Go to Solution.
Assuming you have a calendar table
https://exceleratorbi.com.au/power-pivot-calendar-tables/
something like this
Distinct products =DISTINCTCOUNT(data[product])
Running total =CALCULATE(sumx(values(calendar[date]),[Distinct Products]),Filter(All(calendar),calendar[date] <= max(calendar[date])))
use the calendar date column in your visual.
Hi @Anonymous ,
Is this problem solved?
If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If not, please let me know.
Best Regards,
Icey
HI @Anonymous
I used the below to get the running total.
CALCULATE (
SUM ( 'Table'[Count Distinct Product] ),
ALL ( 'Table' ),
'Table'[Date] < EARLIER ( 'Table'[Date] )
)
Assuming you have a calendar table
https://exceleratorbi.com.au/power-pivot-calendar-tables/
something like this
Distinct products =DISTINCTCOUNT(data[product])
Running total =CALCULATE(sumx(values(calendar[date]),[Distinct Products]),Filter(All(calendar),calendar[date] <= max(calendar[date])))
use the calendar date column in your visual.
Thank you! This worked.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |