Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am trying to calculate the equivalent of the below for Quarter data. The below provides me the calculation for Month data.
I cannot reconfigure these measures to do the same for Quarter data. I am wanting Current Full Qrt SALES and Previous Full QRT SALES. I do have a column in Datetbl of:
Any help would be greatly appreciated.
tks/
Solved! Go to Solution.
Follow such patterns to extract current and previous quarter,
=
VAR __qtr = CALCULATETABLE(DATESQTD(DateTbl[Date]), ENDOFQUARTER(DateTbl[Date]))
RETURN
...
=
VAR __prev_qtr = CALCULATETABLE(DATESQTD(DateTbl[Date]), STARTOFQUARTER(DateTbl[Date])-1)
RETURN
...
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Follow such patterns to extract current and previous quarter,
=
VAR __qtr = CALCULATETABLE(DATESQTD(DateTbl[Date]), ENDOFQUARTER(DateTbl[Date]))
RETURN
...
=
VAR __prev_qtr = CALCULATETABLE(DATESQTD(DateTbl[Date]), STARTOFQUARTER(DateTbl[Date])-1)
RETURN
...
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks so much!
Thanks, I have tried using that function and no luck. Appreciate your post.
Hi,
I think, one of many ways to solve your problem is to use the below DAX function.
https://docs.microsoft.com/en-us/dax/parallelperiod-function-dax
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |