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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RekhaG
Frequent Visitor

Need help - Desktop - Dateadd

Hi,

 

I have created a Measure on Power BI Desktop, the formula that can be seen below:

In the Power BI Report, the total shows up for previous month, but not at individual month level, I am not sure why.

 

Any help is welcome.

 

Thanks,

Rekha

 

_PMCancelSum1 = CALCULATE(distinctcount(Policy[PolicyID]), Dateadd(PolicyCancelDate[CancelDate],-1,month))

 

Screenshot2.jpg

1 ACCEPTED SOLUTION
RekhaG
Frequent Visitor

The issue was because I didn't mark the PolicyCancelDate as a 'Date' Table. Once I did that, I got the desired result.

 

screenshot2.jpg

View solution in original post

2 REPLIES 2
RekhaG
Frequent Visitor

The issue was because I didn't mark the PolicyCancelDate as a 'Date' Table. Once I did that, I got the desired result.

 

screenshot2.jpg

PattemManohar
Community Champion
Community Champion

@RekhaG As per the screenshot, I can understand that measure is to calculate unique policy id counts for the previous month. But for 1st Record there is no previous month which will be 0 and for 2nd record it will show the previous month count i.e. 7857 which is showing on the total as well (As expected). But not sure, why it is not showing in the table visual.... Need more details and sample data to replicate the same...





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.