Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi: I'm preety new in Power BI and I need to create a Bar Chart showing last 4 quarters depending on the Year-Quarter Selected.
I created the chart but it is static and it doiesn't work for the new requirement
The sample is like this: If I select in my filter 2018-Q4, the chart should show 2018-Q1, 2018-Q2,2018-Q3 and 2018-Q4, but If I select 2018-03 the chart should show 2018-Q3, 2018-Q2 2018-Q1 and 2017-Q4.
This is the chart I have now, I need the same but it has to be dinamic
Any ideas how to create this?? Thanks in advanced, for your cooperation.
Hi @Erica_Maidana,
Based on my test, you could refer to below steps:
Sample data:
Create a new table about your slicer:
Table = DISTINCT(Table1[Qtr])
Create a measure:
Measure 2 = CALCULATE(SUM(Table1[Value]),FILTER('Table1','Table1'[Qtr]<>MAX('Table'[Qtr])))
Now you could see the correct result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Thanks @v-danhe-msft. I really appreciatte your help, but unfortunatly this doen't cover what I need. This is only based in Quarters for a particular year and I need this work for Year and Quarters.
I means if I select for example 2018-Q3 , the chart has to show 2018-Q3, 2018-Q2, 2018-Q1 and 2017-Q4.
Any ideas how to achieve this???
Thank you so much, I don;t knoe where I can lookf for this. I am really lost here.
And other thing I forgot!. I have my calendar table connected to the main data with sales values. Connected by date of course.
Hi @Erica_Maidana,
You could modify the [Qtr] column in my row table:
Qtr = YEAR('Table1'[Date])&"-"&"Q" & FORMAT(Table1[Date],"Q")
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
User | Count |
---|---|
102 | |
90 | |
80 | |
71 | |
70 |
User | Count |
---|---|
114 | |
100 | |
97 | |
72 | |
68 |