Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculate expression not working correctly.

Hi all,

 

I'm pretty new to Power BI and DAX functions and I'm having a bit of trouble trying to get one to calculate correctly. I have exam data that grades a learners performance with either a fail, pass, merit or disitinction. I've created 5 columns that works out what the grades would be if the pass mark for each section was reduced by 1 point each time.

 

When I've tried to count how many distinctions we would have if the pass mark was reduced by 1 point, it's counting other values as well and I'm not sure why. 

 

Here is my DAX expression:= 

Writing -1 Disitnction = CALCULATE(COUNT('Pass Rates'[Writing -1]),'Pass Rates'[Writing -1]="Distinction")
 
And here is my table, ignoring the last 4 columns you can see I'm getting results for merit and pass even though that isn't in my expression. Any help anyone can offer would be greatly appreciated. : )
pOWER bi tABLE.png
1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Would you please illustrate "works out what the grades would be if the pass mark for each section was reduced by 1 point each time."? Please share sample data in source data table, including table structure and detailed records. Also, make it clear that what your desired result is. How to Get Your Question Answered Quickly

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.