Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
Hi @Anonymous ,
I suggest you to add a data column for your based dataset like below:
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:
Regards,
Daniel He
Hi @Anonymous ,
I suggest you to add a data column for your based dataset like below:
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:
Regards,
Daniel He
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
99 | |
92 | |
50 | |
49 | |
46 |