The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Have written a dax, and put it in to my matrix. All values are correct, marked with blue V in picture below.
But the Total, marked out with red, is clearly not correct. Have tried SUMX and VALUES, but it still isn't correct.
Totals driving Me Mad =
IF(
CALCULATE(
SUM(Table1[ValuesColumn201]),
FILTER(
Table1,
Table1[ValuesColumn201] = 1)),
SUMX
(Table1,
Table1[ValuesColumn300] *0.85/100 +
(Table1[ValuesColumn301] *22/100) ) *0.2, 0)
Solved! Go to Solution.
Thanks for responding to my question.
I'm using a company data model, and I'm not allowed to add as much detailed information as I want to. That's what that black paint all about.
Meanwhile I've figured out, as you have ponted out, that the error is in the "IF"-bit. I've removed that part from the measure, and added it to a separate column. And I've also added a return statement for what will happen when the value is not 1 (, blank()). And now, when I combine this, the total is correct. 😊
@KIT_LKN , If the condition is not correct or incomplete. With current information not able to suggest new one
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
Thanks for responding to my question.
I'm using a company data model, and I'm not allowed to add as much detailed information as I want to. That's what that black paint all about.
Meanwhile I've figured out, as you have ponted out, that the error is in the "IF"-bit. I've removed that part from the measure, and added it to a separate column. And I've also added a return statement for what will happen when the value is not 1 (, blank()). And now, when I combine this, the total is correct. 😊
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
70 | |
52 | |
50 |
User | Count |
---|---|
120 | |
120 | |
76 | |
62 | |
61 |