Forum Discussion
Average quarter data by month
- 8 years ago
sssssssssssssss
- 8 years ago
I think I got it.
This is the measure:
Avg by Q = CALCULATE( SUM('Quarter'[USD Net Rev])/3, ALLEXCEPT('FiscalYMD', 'FiscalYMD'[Year Quarter]), VALUES(FiscalYMD[Year Quarter] ) )I also added two columns Year Month and Year Quarter to your date table:
Year Month = FiscalYMD[Year] & "-" & format(FiscalYMD[Month], "00")
Year Quarter = FiscalYMD[Year] & " Q" & FiscalYMD[Quarter]Then it looks like this:
Because I use VALUES of the quarters in the measure you can leave the quarters out of the table.
Here is the link to your file.
- 8 years ago
It works with me...
The difference with my example is that I have a date dimension table, which links the months to quarters.
Do you have that as well? It's highly recommended.
Hi Edgar,
Yes, I have a date dimention table. And montly sale and quarter sale tables are refering to the date dimention table. But still the averaged quarterly data still only fill in one month of that quater instead of all monthes.
Please advise.
- waltheed8 years agoImpactful Individual
I think I got it.
This is the measure:
Avg by Q = CALCULATE( SUM('Quarter'[USD Net Rev])/3, ALLEXCEPT('FiscalYMD', 'FiscalYMD'[Year Quarter]), VALUES(FiscalYMD[Year Quarter] ) )I also added two columns Year Month and Year Quarter to your date table:
Year Month = FiscalYMD[Year] & "-" & format(FiscalYMD[Month], "00")
Year Quarter = FiscalYMD[Year] & " Q" & FiscalYMD[Quarter]Then it looks like this:
Because I use VALUES of the quarters in the measure you can leave the quarters out of the table.
Here is the link to your file.
- waltheed8 years agoImpactful Individual
Can you share your pbix file?
- siwyan_18 years agoRegular Visitor
Hi,
I don't know how to upload a file here. This is the link to download the file:
thank you for your help.
- siwyan_18 years agoRegular Visitor
It works perfect without any additional dimentions. After adding in the 'platform' dimention, it cracked again.
Any idea? Thank you so much for your help.
- waltheed8 years agoImpactful Individual
It works with me...
- Anonymous5 years agoNot applicable
Hello,
i exactly need this but not able to get it.. can you help me out ? share me the sample pbix file if possible