Forum Discussion
unnijoy
3 years agoPost Prodigy
Quarter visual
I have a data set as show below. I have a month dorpdown filter. When we select a month, i need the QTR for that month and the previous QTR in cards. and in another 2 card i need to show th...
- 3 years ago
pls try this
Current Qtr = SELECTEDVALUE('Table'[Qtr]) ----- Last QTR = VAR _selectQRT = SELECTEDVALUE('Table'[Order Qtr])-1 VAR _lastMonth = MAXX(FILTER(ALL('Table'),'Table'[Order Qtr]=_selectQRT),[Qtr]) RETURN _lastMonth
Ahmedx
3 years agoSuper User
pls try this
Current Qtr = SELECTEDVALUE('Table'[Qtr])
-----
Last QTR =
VAR _selectQRT = SELECTEDVALUE('Table'[Order Qtr])-1
VAR _lastMonth = MAXX(FILTER(ALL('Table'),'Table'[Order Qtr]=_selectQRT),[Qtr])
RETURN
_lastMonth