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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors