Forum Discussion
Static QUARTERS calculation
- 6 years ago
Gabe_07 , if you have date try datesqtd
QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
Power BI — QTD Questions — Time Intelligence 2–5
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839 - Anonymous6 years ago
Hi Gabe_07 .
If what you are showing is the actual data and you have year and period/month, why don't you just create a separate table for Month/Quarter... I added in Semi Annual though it is rarely used in Finance.
Month Quarter Semi Annual January Q01 Semi01 February
Q01 Semi01 March Q01 Semi01 April Q02 Semi01 May Q02 Semi01 June Q02 Semi01 July Q03 Semi02 August Q03 Semi02 September Q03 Semi02 October Q04 Semi02 November Q04 Semi02 December Semi02 Create a Relationship/Join between this table and your main datasource table... The caveat is that you should have something for unassigned if there are null values in your datasource table.
Hope that helps.
Lou
- Anonymous6 years ago
Gabe_07
Try create the following measure:Measure = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),QUARTER([Date])=SELECTEDVALUE('Table'[Date].[QuarterNo])))Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Gabe_07 , if you have date try datesqtd
QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
Power BI — QTD Questions — Time Intelligence 2–5
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
amitchandak Hi, the DAX
QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
I've already used it, it keeps changing me the Totals Sales when I select a month. I'm trying to set three months calculation when you select a month. Sorry If it doesn't make sense, these two images below have the same year but different months (also the are in the Q2). These should have the same total amount because they belong to the Q2.
- amitchandak6 years agoSuper User
Gabe_07 , My post got saved half. First of all, do you have date. Then you can use datesqtd. And month and year should be in date table.
1.Creating Financial Calendar -of your choice
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calendar-1-5-Power/ba-p/1187441Power BI — QTD Questions — with or without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839if you do not have date use the Rank approch metioned in QTD questions