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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pikachu-Power
Post Prodigy
Post Prodigy

expand IF forumula by layer

Hi all,
 
I have a measure in the calender table that shows me all bar charts until month ago after 15th of current month:
 
Measure = if (Calender[Date] < EOMONTH(TODAY(),-1)+1 && DAY(TODAY()) > 14 || Calender[Date] < EOMONTH(TODAY(),-2)+1, TRUE(), FALSE())
 
I put the measure in the filter pane and say TRUE().
 
The bar chart shows "Is Values" and "Forecast Values" separated in Layer. So the above measure I want to apply on "Is Values" but not "Forecast Values".
 
The formula for the bar chart is:
MeasureBarChart = CALCULATE( SUM(Table[Value]), Table[Position] = "DB")
 
I think I have to change the MeasureBarChart instead of the Measure right?
1 ACCEPTED SOLUTION

I could find a way:

To wrap MeasureBarChart in a SWITCH ( TRUE(), ... ) and use the date limitation to the "Is Values" part.

 

I think that should be the best way?

View solution in original post

3 REPLIES 3
selimovd
Super User
Super User

Hey @Pikachu-Power ,

 

to clarify, the "Measure" is a calculated column in the date table or a measure?

Can you post screenshots of your problem? That makes it easier to understand.

 

Thank you and best regards

Denis

 

Oh yes, sorry! It is a calculated column in the date table 😊

 

Example where i use TRUE():

 

Unbenannt.PNG

 

But I want that the forecast values (blue values) go until December, so that the enduser can see forecast for the whole year. 

I could find a way:

To wrap MeasureBarChart in a SWITCH ( TRUE(), ... ) and use the date limitation to the "Is Values" part.

 

I think that should be the best way?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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