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
Prodosh
Frequent Visitor

Displaying store count for current month+ previous month in current month in dax query

Hi Team,

 

I have a requirement in which i need to calculate store count for current month and Previous month and display in current month.

For Ex :-  if my current month is 2018/11 then it should calculate 2018/10+ 2018/11 store count and display in 2018/11.

the data should be displayed in such a way as in image.Data formatData format

The Code for the following calculation that i have done is for every single month. Code for Store count for every monthCode for Store count for every month

But i need the logic for calculating two months and displaying in single month. Any help would be appreciated. 

Thank youSmiley Happy

3 REPLIES 3
Omega
Impactful Individual
Impactful Individual

Create the below measure: 

 

Store Count 2 = CALCULATE([Store count],DATEADD('Date'[Date],-1,MONTH))+[Store Count]
Prodosh
Frequent Visitor

Sorry @Omega this logic doesn't works

AlB
Community Champion
Community Champion

Hi @Prodosh

Can you share the code and the data in text and table format so that it can be easily copied by people trying to help?

Or share your pbix file 

 

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