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
andyly85
Frequent Visitor

If statement in DAX-how to implement for measures %, and the output as a quarter end date.

Hi team, I am trying to implement a new measure which outputs the quarter end date if a measure is >25%, else blank  So far I have coded in DAX:  But having no success so far...

 

>25% = IF('Rank'[Largest Client %] > 25%, "December 22")
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @andyly85 ,

You just need do a simple modification, change 25% to 0.25, please try below dax formula:

>25% = IF([Column1]>0.25,"December22")

vbinbinyumsft_0-1674625578359.png

Best regards,
Community Support Team_Binbin 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

4 REPLIES 4
Anonymous
Not applicable

Hi @andyly85 ,

You just need do a simple modification, change 25% to 0.25, please try below dax formula:

>25% = IF([Column1]>0.25,"December22")

vbinbinyumsft_0-1674625578359.png

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

This works now, thanks!

amitchandak
Super User
Super User

@andyly85 , Assume you need qtr for today of selected date

 

Qtr =
var _today = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = eomonth(_today, if( mod(Month(_today),3) =0,0,3-mod(Month(_today),3)))

return

IF('Rank'[Largest Client %] > 25%, _max )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi!  This has come up as an error..

 

The following syntax error occurred during parsing: Invalid token, Line 7, Offset 33, %.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.