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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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