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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Dax Formula not giving correct values.

Hi Team

i need help with the below, so basically what im trying to do is i'm calculating SLA Condition using the below script which is a Column

SLA Condition = IF([Total SLA]<=Activities[CCBA Target],1,0)
 
im assuming why its giving me wrong values is because im comparing a Measure with a column and all it gives me is 1 which is not correct. ive attached pictures of how ths scenarior looks.
let me know if you need more information
ManwathaI_1-1618478614962.png

 

regards 

Manwatha Immanuel

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous 

Try measure like

SLA Condition = IF([Total SLA]<=Sum(Activities[CCBA Target]),1,0)

 

or

 

SLA Condition = IF([Total SLA]<=max(Activities[CCBA Target]),1,0)

 

Make sure you disply this measure with line level data

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous 

Try measure like

SLA Condition = IF([Total SLA]<=Sum(Activities[CCBA Target]),1,0)

 

or

 

SLA Condition = IF([Total SLA]<=max(Activities[CCBA Target]),1,0)

 

Make sure you disply this measure with line level data

Anonymous
Not applicable

Hi @amitchandak  your surgestion worked thanks alot.

 

ive used this formula 

SLA Condition = IF([Total SLA]<=Sum(Activities[CCBA Target]),1,0)

amitchandak
Super User
Super User

@Anonymous , if one of them is the measure, it will not work. You can not measure in a new column. You have to create a new measure only

Anonymous
Not applicable

Hi @amitchandak  thank you for your response, do you pehaps have simple method i can convert the column i have and make it a measure without changing data in it?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors