Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello, I want to count the number of positive lines of the measure [measure1] -[measure2]
thank
Solved! Go to Solution.
Hi @askoflor ,
Here I create a sample to have a test.
Measures:
Measure 1 = SUM('Table'[Value1])Measure 2 = SUM('Table'[Value2])Measure 1 - Measure 2 = [Measure 1] - [Measure 2]Count Positive = COUNTAX(FILTER(VALUES('Table'[Category]),[Measure 1 - Measure 2] >0),[Category])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @askoflor ,
Here I create a sample to have a test.
Measures:
Measure 1 = SUM('Table'[Value1])Measure 2 = SUM('Table'[Value2])Measure 1 - Measure 2 = [Measure 1] - [Measure 2]Count Positive = COUNTAX(FILTER(VALUES('Table'[Category]),[Measure 1 - Measure 2] >0),[Category])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |