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
igrandey89
Advocate II
Advocate II

DAX Beginner - Need help with displaying/replacing items depending on the quarter selected.

The end goal of this DAX:

  • Replace “FALSE” with “TBD” for teams with no existing goals (when current or future quarter is selected from slicer).
  • Display TRUE for teams that have existing goals—regardless of the quarter selected (already working).
  • Display FALSE for teams with no existing goals past quarters and do not = current quarter (this is where I am getting stuck ☹)

Here’s what I have currently--no trouble with replacing "False" fields (which are currently formatted as text) with "TBD." 

goalExists =

IF([teams_with_goal]=0, "TBD", TRUE())

 

After this, it's clear that all my False values are replaced with TBD.

 

For reference, this is the teams_with_goal measure:

teams_with_goal =

CALCULATE(

    DISTINCTCOUNT(SquadTeams[Id]) +0,

    ALLNOBLANKROW('SquadHealthCheckGoal'[ID])

)

 

After creating the above measure, I was able to duplicate/change the column type to text and replaced with True/False. That being said, I can't seem to wrap my head around only replacing the "False" values for current or future months

igrandey89_0-1629992486200.png

Any insight is greatly appreciated 🙂

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Try not to mix field types in your results. Oftentimes DAX will actually prevent you from doing that.  In this scenario you should stick with all text values, ie "FALSE","TBD","TRUE" etc.

 

Learn about functions like ISBLANK() and COALESCE()

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Try not to mix field types in your results. Oftentimes DAX will actually prevent you from doing that.  In this scenario you should stick with all text values, ie "FALSE","TBD","TRUE" etc.

 

Learn about functions like ISBLANK() and COALESCE()

Appreciate your response---I'm going to work on it this week with a fresh mind!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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