Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
Requirement :
1. Want to show Present Quarter and Previous Quarter in Same Visual.
Used Formula :
Previous Quarter = CALCULATE (
COUNT('Date Master (2)'[DayOfMonth]),
PREVIOUSQUARTER('Date Master (2)'[Date].[Date])
)
This Measure working fine for me.
Problem is :
1. When i have apply filter am not getting the Previous Quarter value.
2. Instead of Previous am getting Next Quarter value. Logically that is correct i can understand .
But My question is How can i get my previous Quarter value. I know have to do something on DAX. but i am cluless please help me.
I would recommend creating the measure for current quarter then wrapping it in dateadd by using Calculate using DAX.
PresentQuarter = COUNT(DateMaster[DayOfMonth])
Previous Quarter = CALCULATE([PresentQuarter], DATEADD(DateMaster[DateKey], -1, quarter))
You would need to verify the formula for your present quarter total but the rest should be verbatium for the previous quarter assuming that your calendar table is called DateMaster and your Date Key column is called DateKey.
Proud to be a Super User!
Hi @Baskar,
From the screenshots above, I found that the quarter column added to slicer is different from that in table visual, why? In slicer, it shows 1,2,3,4 , while in table it shows Qtr1,Qtr2,ect. So, please check whether you put the correct column into slicer as a filter.
Please add the Quarter column(Qtr1, Qtr2, Qtr3, Qtr4 ) to slicer to see whether this issue persists. Here is the result in my test.
If I have something misunderstood, please provide more detailed information, like sample data, all the measures you used and relationships between tables.
Thanks,
Yuliana Gu
How to added Quarter in Slicer, I tried to put quarter in slicer from date. but i cant able so only i created new column as quarter number.
Can u please help how can i create slicer with Quarter fromDate . @v-yulgu-msft
Hi @Baskar,
We cannot create a slicer with Quarter from Date column directly. The same to you, I created a calculated column:
Quarter = 'Date Master'[Date].[Quarter], and put this column into slicer.
I saw you also had this column (Quarter: Qtr1, Qtr2, Qtr3,Qtr4) in your table, why don't you drag this column into slicer?
Thanks,
Yuliana Gu
User | Count |
---|---|
88 | |
73 | |
69 | |
64 | |
56 |
User | Count |
---|---|
98 | |
92 | |
84 | |
74 | |
66 |