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
Based 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
unnijoy
3 years agoPost Prodigy
Ahmedx thanks for your qucik response. can you tell me how can i show the Quater name in a card. for example when i select April -23 the one card should show Q2'23 & in another card it should show the previous quarter as Q1'23.how can we do this.
- Ahmedx3 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