March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have table 1 that has a 'columnToCount' field that I'd like a running total to be put in a bar graph that has an x-axis from table 2 which has a date column that is used in a slicer and has a 1:* relationship between the 2 date columns.
I've tried the quick measure and many other solutions that use only 1 table that do work with 1 table, but because of the x-axis being from the second table my measure ignores what is filtered. Thanks so much for your time.
Sample data below:
Table 1
columnToCount | dateTable1 |
1 | 1/15/2022 |
2 | 4/15/2022 |
3 | 7/15/2022 |
4 | 12/15/2022 |
Solved! Go to Solution.
Hi, @Anonymous
Measure = CALCULATE(SUM(Table1[Count]),FILTER(ALL(Table2),[Date]<=SELECTEDVALUE(Table1[Date])))
Is this the result you expect? If not, let us know what you expect the output to be.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Measure = CALCULATE(SUM(Table1[Count]),FILTER(ALL(Table2),[Date]<=SELECTEDVALUE(Table1[Date])))
Is this the result you expect? If not, let us know what you expect the output to be.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Can you share sample data from both tablesand sample output in table format? Or a sample pbix after removing sensitive data.
But new Window function can help
Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
or
Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |