Forum Discussion
unnijoy
Post Prodigy
3 years agoQuarter 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
Super User
3 years agoBased on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
https://1drv.ms/u/s!AiUZ0Ws7G26RiF8BOplXRoeii7tI?e=mdsni5