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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
android1
Post Patron
Post Patron

Custom Formula IF > 50

Hi,

 

i want to insert a new custom column if the vales contained in column Count Scheduled Hrs are > 50.

I'm using =[Count Scheduled Hrs]>50 in a custom column formula but the results are FALSE.

 

1 ACCEPTED SOLUTION

Hi android1,

 

In your scenario, you can create a new column based on the DAX function like below:


= IF([Count Scheduled Hrs]>50,[Count Scheduled Hrs],BLANK())

 

Please refer to the screenshot below:

 

q2.PNG


Reference:

IF Function (DAX)


If you have any question, please feel free to ask.

 

Best regards,
Qiuyun Yu

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

View solution in original post

5 REPLIES 5
kcantor
Community Champion
Community Champion

@DSimma is correct. You need to use the IF portion and you need to specify the return values. You could return something as simple as "Yes" or "No". After that, you can add that as a filter or slicer to your reports so that values only display when greater than or less than 50.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




DSimma
Advocate II
Advocate II

You need to us an if statement

 

Like

 

=if([Count Scheduled Hrs]>50,">50","<50")

 

So that if greater then 50 it displays ">50" and if not it displays "<50"

Thanks. I would like the custom column to actually contain the values of [Count Scheduled Hrs]. So if [Count Scheduled Hrs]

contains 40,55,60, then custom column should be 55 & 60.

Hi android1,

 

In your scenario, you can create a new column based on the DAX function like below:


= IF([Count Scheduled Hrs]>50,[Count Scheduled Hrs],BLANK())

 

Please refer to the screenshot below:

 

q2.PNG


Reference:

IF Function (DAX)


If you have any question, please feel free to ask.

 

Best regards,
Qiuyun Yu

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

Hi Qiuyun Yu,

 

Thank you very much.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.