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
1001
Resolver II
Resolver II

If statement for a percent value

Hi All, I have a calculated column (see below) to calculate a percent from two numbers of other columns.

Now I'd like to create another column to display if the percent is greater than 70%. Just not sure how to write the DAX for it, if someone could help. Thanks. 

 

1001_0-1674305563904.png

Greater 70% = if('ZSLED Excel'[Percent Remaining]>70%,'ZSLED Excel'[Percent Remaining],0)

 

1 ACCEPTED SOLUTION
Migasuke
Super User
Super User

Hi,

In your DAX calculation do not use % sign, only use decimal version. Instead of 20% use 0.2 etc.
Example here:

Migasuke_0-1674306261679.png

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

View solution in original post

2 REPLIES 2
Migasuke
Super User
Super User

Hi,

In your DAX calculation do not use % sign, only use decimal version. Instead of 20% use 0.2 etc.
Example here:

Migasuke_0-1674306261679.png

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Ahh, I had .7 rather 0.7 earlier. 

Thanks Migasuke, appreciate that. Cheers.

Helpful resources

Announcements
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.

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.