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
Anonymous
Not applicable

I want to do a forecast, applying 2 filters from the data set

I want to calculate a monthly forecast applying different values based on different filters from a the data set as follow, 

Forecast1 =
VAR
Paying=
CALCULATE([Actual MoM #],
FILTER(DimDate, DimDate[Fiscal Year]="2023" ),
FILTER(TOTAL, COUNT(TOTAL[Paying Type]="Paying")))
RETURN
Paying*0.50

ZAAX_0-1650432056487.png

 

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your data model looks like, but please try to replace "2023" to 2023 (without "").

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Thanks, but Now I am using this one, but I don't have values:
Forecast Paying =
VAR
year21=CALCULATE([Actual MoM #],DATEADD (DimDate[Date],-1,YEAR),
FILTER(TOTAL, TOTAL[Paying Type]="Paying" && TOTAL[Product Class]="Medial Indenmnity"))
VAR
year20=CALCULATE([Actual MoM #],DATEADD (DimDate[Date],-2,YEAR),
FILTER(TOTAL, TOTAL[Paying Type]="Paying" && TOTAL[Product Class]="Medial Indenmnity"))
 
VAR
Factor= 0.5
RETURN
DIVIDE( year21 + year20 ,2,0) * Factor

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