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,
So I have to create a measure for a couple of conditions. If it is true, then use the following formula, if it is false then -1.
Which has worked. But then I want the total of the results which did not work. How do get the correct sum of the results of the measure?
Thank you
Solved! Go to Solution.
Hi @powerbiwork ,
According to your description, here’s my solution.
1.Creteat a measure like you.
Measure1 =
IF (
SUM ( 'Opportunity'[Total ACV(USD)] ) = 0
&& SUM ( 'Opportunity'[One Off License(USD)] ) > 0,
SUM ( 'Opportunity'[Positive_License_cost_c(USD)] )
* SUM ( 'Commission-Model'[Commission:Rates0-50%] )
* SUM ( 'Commission-Model'[ACV-First-Yr-Maint] ),
IF (
SUM ( 'Opportunity'[Total ACV(USD)] ) > 0
&& SUM ( 'Opportunity'[One Off License(USD)] ) > 0,
-1
)
)
2.Create another measure for the result.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @powerbiwork ,
According to your description, here’s my solution.
1.Creteat a measure like you.
Measure1 =
IF (
SUM ( 'Opportunity'[Total ACV(USD)] ) = 0
&& SUM ( 'Opportunity'[One Off License(USD)] ) > 0,
SUM ( 'Opportunity'[Positive_License_cost_c(USD)] )
* SUM ( 'Commission-Model'[Commission:Rates0-50%] )
* SUM ( 'Commission-Model'[ACV-First-Yr-Maint] ),
IF (
SUM ( 'Opportunity'[Total ACV(USD)] ) > 0
&& SUM ( 'Opportunity'[One Off License(USD)] ) > 0,
-1
)
)
2.Create another measure for the result.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you!
You must consider, on the total row the model does not look at any of the rows above. It is calculated completely separate and independent. Take a look at this article that discusses the topic.
https://www.sqlbi.com/articles/obtaining-accurate-totals-in-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 |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |