Forum Discussion
TravisGlanzer
5 years agoFrequent Visitor
Max month in table with data
I am trying to create a DAX that gives me the last (Max) month's result in each quarter. But if the last month is mid quarter then I would like the max month where the table actually has data with a...
- 5 years ago
Hi, TravisGlanzer
Try measure as below:
Qtr_monthno = RANKX ( FILTER ( ALL ( 'BdgDate' ), BdgDate[Quarter] = MAX ( BdgDate[Quarter] ) ), CALCULATE ( MAX ( BdgDate[Date] ) ), , ASC ) //Rank of month in each quarterMax_Qtr.No = MAXX ( FILTER ( BdgDate, ( BdgDate[Quarter] = MAX ( BdgDate[Quarter] ) && [ReportBuilderEntCurrentDonorBase] <> BLANK () ) ), [Qtr_monthno] ) //max month where data exists for actualsResult = CALCULATE ( MAX ( 'VW_AGGR_DONOR_BASE'[Donor Base] ), FILTER ( ALL ( BdgDate ), ( BdgDate[Quarter] = MAX ( BdgDate[Quarter] ) ) && [Max_Qtr.No] = MAXX ( BdgDate, [Max_Qtr.No] ) ) )Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-easonf-msft
Community Support
5 years agoHi, TravisGlanzer
It seems that I don’t have permission to access it.
Can you check the permission and share the link again?
Best Regards,
Community Support Team _ Eason
TravisGlanzer
5 years agoFrequent Visitor
Doesn't look like my company will let me give access to anyone with a link:
This site doesn't seem to allow me to just post the pbix?
- TravisGlanzer5 years agoFrequent Visitor