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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
KH11NDR
Helper IV
Helper IV

IF statement in table using measures,

Hi Guys,

 

What I'm trying to do as a measure to work in a table and probably charts too.

 

=IF(Month >= Month(Today()), Year = Year(Today()), 'Show Measure with new calculated figures','show historic sales' (Sales)

 

So

 

Jun                    :    Jul                    :             Aug

 

10                     :   15                       :      20

 

Sales field         : Sales Field             :     Calculated measure.

 

Thanks  

1 ACCEPTED SOLUTION
KH11NDR
Helper IV
Helper IV

I gave up waiting and worked it out lol, just need to add the Year bit in, which i'll sort out easily.

 

Measure 3 = if([Measure 2]>= MONTH(TODAY()),[Measure 2],[Measure 4])

View solution in original post

2 REPLIES 2
KH11NDR
Helper IV
Helper IV

I gave up waiting and worked it out lol, just need to add the Year bit in, which i'll sort out easily.

 

Measure 3 = if([Measure 2]>= MONTH(TODAY()),[Measure 2],[Measure 4])

tex628
Community Champion
Community Champion

 

Measure = 
IF([Month]>MONTH(TODAY()) && [Year]=YEAR(TODAY());
[Calculated measure];
[Historic sales]
)

 

 


Connect on LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors