cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dawngrrl
Microsoft
Microsoft

Help creating a measure with DAX

Hi Peeps. I need some help. I am trying to create a measure within a column in PBI Desktop with DAX. I have a column called QOS and I want to determine the NSAT.  This means I need to count the values (rows) within the column and subtract them from the grouped sum.  For example:  Sum the count of the 1, 2, 3, and 4 values and the subtract the sum of the count of the 8 and 9 values.  

 

8 = 18

9 = 42

Sum is 60

 

1 = 3

2 = 11

3 = 2

4 = 6

Sum is 22

 

Measure should be the output of 60 - 22=38 Smiley Happy

1 ACCEPTED SOLUTION
scottsen
Memorable Member
Memorable Member

Total Rows := COUNTROWS(MyTable)
Low Rows := CALCULATE([Total Rows], MyTable[Value]< 6)
High Rows := CALCULATE([Total Rows], MyTable[Value] >= 6)
Delta := [High Rows] - [Low Rows]

View solution in original post

1 REPLY 1
scottsen
Memorable Member
Memorable Member

Total Rows := COUNTROWS(MyTable)
Low Rows := CALCULATE([Total Rows], MyTable[Value]< 6)
High Rows := CALCULATE([Total Rows], MyTable[Value] >= 6)
Delta := [High Rows] - [Low Rows]

View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors