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.
Hi,
I need to tweak the below column calculation which is a running total.
The calculation is working but I also need it to work seperately per year and per "Type" in my data set. At the moment it is just a running total of each month combined (the [Period]), regardless of the Year and "Type".
I can share a file if it helps - any help greatly appreciated. I have to try to do this using a column, not a measure.
Thanks!
Solved! Go to Solution.
You can just adapt your measure with ALLEXCEPT() in place of ALL(). Just include the columns you don't want to remove the filter from. For example - ALLEXCEPT(Sheet1, Sheet1[Year]) will keep the current Year context in place. You can add 1 or move columns there.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can just adapt your measure with ALLEXCEPT() in place of ALL(). Just include the columns you don't want to remove the filter from. For example - ALLEXCEPT(Sheet1, Sheet1[Year]) will keep the current Year context in place. You can add 1 or move columns there.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @mahoneypat
Thanks for your reply - this worked for the year, but I can't get the category to work also which is "Ref" per below. Any ideas what I am doing wrong please? I get an error saying "cannot convert value Ref1 of type text to type True/False"?
Missed a bracket! Thank you very much!
Both columns need to be listed in the ALLEXCEPT
ALLEXCEPT(Sheet1,Sheet1[Year],Sheet1[Ref]),
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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 |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |