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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Cannot find a formula to sum correctly

Hello,

 

As you can see in the screenshot, I have a small problem.

The result for EE is correct but i don't want that the other lines are -13.2.

What can i do?

 

Capture d’écran 2021-09-02 144817.pngCapture d’écran 2021-09-02 144636.png

 

Thank you very much!

5 REPLIES 5
VahidDM
Super User
Super User

Hi @Anonymous 

 

Try to use IF in your code, something like this:

 

measure = If([Cluster]="EE",[A1819 YTD EE]-13.2,"")

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Appreciate your Kudos ✌️ !!

 

 

Anonymous
Not applicable

It does not work because the if statement does not let me pick a column in my tables. I've thought about it already

@Anonymous If you are creating a measure and you need to reference a column, use an aggregation like MAX, MIN, SUM, AVERAGE.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Anonymous 

Can you please share a smaple of your data here in table format? or share a sample of your PBIX file.

 

Appreciate your Kudos ✌️!

Anonymous
Not applicable

Unfortunately no. 

Isn't there  another solution?

 

Thank for your answers and taking the time

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.