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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Generating Sum of Backend Data (Qty and Amount) on Daily basis ( Separate Value Everyday)

Hello All,

 

I am creating a chart using some data.

I have directly connected the data source to power bi. this will be refreshed on daily basis. This database has some columns like below-

productcode    qty        value 

aaa                  5000      $100

bbb                  6000      $400

and so on..

I want to sum the total of qty and value on daily basis like

Date                   total qty                                                     total value

12 apr 19            11,000                                                           $500

13 apr 19            (11,00+new added rows after refresh on next day)     (500+new added rows after refresh on next day)

 

I dont have any DATE Reference to do same. 

 

How to do this in Dax?? Need Help

 

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

I suggest you to add a data column for your based dataset like below:

1.PNG

Create below measures:

Total qty = CALCULATE(SUM(Table1[qty]),FILTER(ALL(Table1),'Table1'[Date]<=MAX('Table1'[Date])))
Total value = CALCULATE(SUM(Table1[Value]),FILTER(ALL(Table1),'Table1'[Date]<=MAX('Table1'[Date])))

Result:

2.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

I suggest you to add a data column for your based dataset like below:

1.PNG

Create below measures:

Total qty = CALCULATE(SUM(Table1[qty]),FILTER(ALL(Table1),'Table1'[Date]<=MAX('Table1'[Date])))
Total value = CALCULATE(SUM(Table1[Value]),FILTER(ALL(Table1),'Table1'[Date]<=MAX('Table1'[Date])))

Result:

2.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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