Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I have added the quarter as a filter in this filter if i select 2020 Q3 i need previous 3 quarter value visible in cluster column chart
saple data
Country | Job | Value | Date | Quarter |
Netherlands | Business | 1 | 6/1/2019 | Q2 |
Netherlands | Finance | 1 | 6/1/2019 | Q2 |
United Kingdom | Business | 0.6 | 6/1/2019 | Q2 |
United Kingdom | Business | 0.6 | 6/1/2019 | Q2 |
Netherlands | Business | 0.9 | 9/1/2019 | Q3 |
Netherlands | Business | 1 | 9/1/2019 | Q3 |
Netherlands | Finance | 1 | 9/1/2019 | Q3 |
United Kingdom | Business | 1 | 1/1/2020 | Q1 |
United Kingdom | Business | 0.6 | 1/1/2020 | Q1 |
United Kingdom | Business | 1 | 1/1/2020 | Q1 |
United Kingdom | Finance | 0.8 | 4/1/2020 | Q2 |
United Kingdom | Business | 1 | 4/1/2020 | Q2 |
United Kingdom | Business | 1 | 4/1/2020 | Q2 |
how can I achieve this logic?
Thanks & Regards,
Rajesh R
Solved! Go to Solution.
@Anonymous ,
Change the measure:
_Value =
VAR _selectedDate = MAX(D_Date[Date])
RETURN CALCULATE(SUM('Table'[Value]), FILTER('Table', 'Table'[Date] in DATESINPERIOD(D_Date[Date], _selectedDate, -4, QUARTER)))
Also, I've included a new line in the source for 2019 Q14 as 20191201.
if i select 2020 Q3 i need selected quarter and previous 3 quarter value ie 2020 Q3, 2020 Q2, 2020 Q1 , 2019 Q4
is this possible?
Thanks for your response, i have tried your measure but it's not working
if i select 2020 Q3 previous 3 quarter value display 2020Q2, 2020Q1, 2019Q4
i have attached my pbix file click here,
Thanks
Rajesh
@Anonymous ,
Change the measure:
_Value =
VAR _selectedDate = MAX(D_Date[Date])
RETURN CALCULATE(SUM('Table'[Value]), FILTER('Table', 'Table'[Date] in DATESINPERIOD(D_Date[Date], _selectedDate, -4, QUARTER)))
Also, I've included a new line in the source for 2019 Q14 as 20191201.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
10 | |
9 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
10 |