Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello
I wish I could have an IF function within a measure that allows me to call another measure if it is before today and another if it is after today. Is it possible to do this and if so how?
The logic is essentially if( Calander[Date] < ? Today() , Cumulative Sum , Forecast )
Any help will be appreciated.
Best regards
Shaun
Solved! Go to Solution.
if( max(Calander[Date]) < Today() , [Cumulative Sum] ,[Forecast] )
Or
calculate([Cumulative Sum], filter(Calander, Calander[Date] < Today() )) + calculate([Forecast] , filter(Calander, Calander[Date] >= Today() ))
if( max(Calander[Date]) < Today() , [Cumulative Sum] ,[Forecast] )
Or
calculate([Cumulative Sum], filter(Calander, Calander[Date] < Today() )) + calculate([Forecast] , filter(Calander, Calander[Date] >= Today() ))
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
68 | |
67 | |
41 | |
39 |
User | Count |
---|---|
48 | |
42 | |
29 | |
28 | |
27 |