Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm going to show a meaure values of this year and last year on a bar chart. I created a new measure in PowerBI Desktop with this formula:
The problem is when I use a Time Slicer and select a year, The calculated measure be disapeared and It sounds the last year data getting filter out from the dataset:
I can see the OrderQuantityLY just when more than 1 year is selected:
Any suggestion?
Thanks,
Ali
Solved! Go to Solution.
@AliSharifi Create a clustered column chart
In the Axis - enter CalendarMonth (this should be a field from the DimDate table that represents just the months)
In the Legend - enter CalendarYear (again from the DimDate table the field that represents just the years)
this field CalendarYear should be the same field you use for the Slicer
In the Value - enter this measure OrderQuantity = SUM(FactInternetSales[OrderQuantity])
This will create a chart that will show 12 columns - overall totals for Jan thru Dec for all years
Then select as many years in the slicer as you wish - you will get that many columns for each month
this works with line charts too and you can select any years to compare not just consecutive
I'm glad it is working.
A couple of points.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |