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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Daily usage rollup

I am trying to create a report which shows the daily usage of our services.  our services report usage per region daily but i need to rollup the usage to only show 1 entry for each product per day.  I have looked at aggregate & group by functions but not sure what is the correct solution to use.  here is an example of my data and what i would like as a result.

Post DateProduct IDUsage DateProduct ID Daily Usage
1-Jul-21ABC5 1-Jul-21ABC22
1-Jul-21ABC10 1-Jul-21XYZ15
1-Jul-21ABC7 2-Jul-21ABC31
1-Jul-21XYZ4 2-Jul-21XYZ16
1-Jul-21XYZ5 3-Jul-21ABC25
1-Jul-21XYZ6 3-Jul-21XYZ27
2-Jul-21ABC6    
2-Jul-21ABC15    
2-Jul-21ABC10    
2-Jul-21XYZ6    
2-Jul-21XYZ5    
2-Jul-21XYZ5    
3-Jul-21ABC10    
3-Jul-21ABC10    
3-Jul-21ABC5    
3-Jul-21XYZ8    
3-Jul-21XYZ9    
3-Jul-21XYZ10    
1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

If you want to achieve this by creating a new column,create  new column use the below dax:

test1 = CALCULATE(SUM('Table'[Usage]),ALLEXCEPT('Table','Table'[Post Date],'Table'[Product ID]))

vluwangmsft_0-1627375626181.png

If you want to achieve through visual effects:(create table visualizaiton like below) :

 

vluwangmsft_2-1627375737536.png

 

And if you still want to create a new measure,use following daxs:

test2 = CALCULATE(SUM('Table'[Usage]),ALLEXCEPT('Table','Table'[Post Date],'Table'[Product ID]))

or

test3 = CALCULATE(SUM('Table'[Usage]),FILTER(ALL('Table'),'Table'[Post Date]=MAX('Table'[Post Date])&&'Table'[Product ID]=MAX('Table'[Product ID])))

or

test4 = SUM('Table'[Usage])

vluwangmsft_3-1627375960243.png

 

 

Wish it is helpful for you!

 

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

If you want to achieve this by creating a new column,create  new column use the below dax:

test1 = CALCULATE(SUM('Table'[Usage]),ALLEXCEPT('Table','Table'[Post Date],'Table'[Product ID]))

vluwangmsft_0-1627375626181.png

If you want to achieve through visual effects:(create table visualizaiton like below) :

 

vluwangmsft_2-1627375737536.png

 

And if you still want to create a new measure,use following daxs:

test2 = CALCULATE(SUM('Table'[Usage]),ALLEXCEPT('Table','Table'[Post Date],'Table'[Product ID]))

or

test3 = CALCULATE(SUM('Table'[Usage]),FILTER(ALL('Table'),'Table'[Post Date]=MAX('Table'[Post Date])&&'Table'[Product ID]=MAX('Table'[Product ID])))

or

test4 = SUM('Table'[Usage])

vluwangmsft_3-1627375960243.png

 

 

Wish it is helpful for you!

 

 

Best Regards

Lucien

DataInsights
Super User
Super User

@Anonymous,

 

Try this measure:

 

Total Usage = SUM ( Table1[Usage] )

 

DataInsights_0-1626992507460.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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