Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Need help getting a DAX cumulative total to work across two tables with a many-to-one relationship!
I have two very simple tables (A dates table, and a people table) connected by a "Name" column.
All I want to do is create a summarized table by date with the cumulative total of people, and a target value.
Here's the code for my DAX summarized table:
When the two tables have a 1-to-1 relationship, this code works perfectly!! Unfortunately, as soon as I have more than one record per name in my people table, and the relationship becomes a many-to-one relationship, the cumulative total stops counting cumulatively, and simply returns the total for that record.
Is there a way to get around this?? I've already tried using the "all" function, but that didn't help either.
Solved! Go to Solution.
Found the issue.
All I had to do was change the summarized table to the dates table instead of the people table. Send a kudo if you love the ever miniscule subtlties of Power BI table relationships and DAX. 🙂
this is most helpful 🙂 I struggled with this for way too long 😔
Found the issue.
All I had to do was change the summarized table to the dates table instead of the people table. Send a kudo if you love the ever miniscule subtlties of Power BI table relationships and DAX. 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |