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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kimrhansen
Frequent Visitor

Create measure that holds previous month value as calculated from Sliced filtered month

Hi all,

 

I am going nuts here, and I have not been able to find the correct solution

 

I want to do the following.

 

Create a measure with the previous month BESTPRM. 

That way I can compare BESTPRM with BESTPRM Prev.

However, if I only select one month in my slicer, than I have nothing in my BESTPRM Prev value.

Therefore I try to remove the filter with the ALL function using the measure below.

However, this results in my measure including all prevous dates values. Thus the BESTPRM Prev measure is to large.

I just want the value one month prior to the selected one in my slicer.

 

BESTPRM Prev = CALCULATE(SUM('Fact_table'[BESTPRM]);FILTER(all('dim Date');'dim Date'[Date]>=EOMONTH('dim Date'[Date];-1)))

 

Thanks in advance,

 

Kim

1 REPLY 1
spuder
Resolver IV
Resolver IV

Hi @kimrhansen

 

I tried to rebuild your problem. The result is as follows.

 

example.jpg

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!

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