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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
devGV_88
Helper I
Helper I

Problem with Cumulative Total (By Date and Vendor)

Hi folks!

 

I need to count rows rollling 12 month.

I was able to create the measure a show by month.

 

Measure: CALCULATE(DISTINCTCOUNT(Table[ID]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))

devGV_88_2-1661885465909.png

But when I add onw more collumn (Vendor) from the same table I see other result.

devGV_88_0-1661885194118.png

 

I need the rolling in the last table to show as chart.

I need a chart like this:

 

devGV_88_1-1661975487034.png

 

Could you help me?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@devGV_88 , Make sure the month is coming from the date table and date table is marked as date table.

 

Measure seems correct to me

 

Also if the same id is across two months , it will be counted once because of distinctcount

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@devGV_88 , Make sure the month is coming from the date table and date table is marked as date table.

 

Measure seems correct to me

 

Also if the same id is across two months , it will be counted once because of distinctcount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.