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

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

Reply
Anonymous
Not applicable

Conditional Measure to calculate values based on Year in Matrix

Hi Everyone,

 

I have a excel file in that client has used one formula to calucalte the amount from 2015 to till 2021 Q2 but from 2021 Q3 they have used different formula to get amount.

 

I wrote  a measure to calculate the amount for 2015 to 2021 in matrix, Its working perfectly till 2021 Q2 but here i have to specify the condition it should use different measure to calculate the amount from 2021 Q3.

 

I need to write a measure to find amount from 2015 to 2021 Q2 & from 2021 Q3 onwards it should use different formula to caluclate the amount.

 

kindly help me out from this scenario.

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Has your problem been solved ? If it has been solved, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regard

Community Support Team _ Ailsa Tao

amitchandak
Super User
Super User

@Anonymous , My advice would be to have combine using filter

Assume you have date table and Q3 end on  2021-09-30

 

Assume you have two measures

m1 =[Measure]

m2= [Measure after Q3]

 

 

final measure

calculate([M1], filter('Date', 'Date'[Date]<= Date(2021,09,30) )) +

calculate([M2], filter('Date', 'Date'[Date]>  Date(2021,09,30) ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.