This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I have copied an issue below. Please help me in solving this as soon as possible.
I have below data.
| date | HC | REV |
| 1-Dec-18 | 589 | |
| 1-Jan-19 | 616 | 9500 |
| 1-Feb-19 | 630 | 5698 |
| 1-Mar-19 | 648 | 7459 |
| 1-Apr-19 | 648 | 3521 |
I want to show in below format by using above table. Running HC AVG value is running average from minimum date to current date and Running REV SUM value is sum from minimum date to current date.
| date | HC | REV | Running HC AVG | Running REV SUM | Running rev sum/running HC AVG |
| 1-Dec-18 | 589 | ||||
| 1-Jan-19 | 616 | 9500 | 602 | 9500 | 15.7807309 |
| 1-Feb-19 | 630 | 5698 | 611 | 15198 | 24.87397709 |
| 1-Mar-19 | 648 | 7459 | 620 | 22657 | 36.54354839 |
| 1-Apr-19 | 648 | 3521 | 626 | 26178 | 41.81789137 |
ANd I want to show running rev sum/running HC avg value in column chart for 2019 year from jan to april in x-axis.
Thanks
Praneeth
Solved! Go to Solution.
@Anonymous ,
Create three calculate columns using DAX below:
Running HC AVG = IF('Table'[date] <> MIN('Table'[date]), CALCULATE(ROUNDDOWN(AVERAGE('Table'[HC]), 0), FILTER('Table', 'Table'[date] <= EARLIER('Table'[date]))))
Running REV SUM = CALCULATE(SUM('Table'[REV]), FILTER('Table', 'Table'[date] <= EARLIER('Table'[date])))
Running rev sum/running HC AVG = 'Table'[Running REV SUM] / 'Table'[Running HC AVG]
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
Create three calculate columns using DAX below:
Running HC AVG = IF('Table'[date] <> MIN('Table'[date]), CALCULATE(ROUNDDOWN(AVERAGE('Table'[HC]), 0), FILTER('Table', 'Table'[date] <= EARLIER('Table'[date]))))
Running REV SUM = CALCULATE(SUM('Table'[REV]), FILTER('Table', 'Table'[date] <= EARLIER('Table'[date])))
Running rev sum/running HC AVG = 'Table'[Running REV SUM] / 'Table'[Running HC AVG]
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |