cancel
Showing results for 
Search instead for 
Did you mean: 
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])

View solution in original post

tex628
Super User II
Super User II

 

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

 

 


Connect on LinkedIn

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors