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.
Dear members,
I'm creating a 2022 report that shows the # of customers per month in a bar chart (Jan22-Dec22), but also as a tile with 1 number in it: the most recent value of the # of customers when you change the slicer to a specific month.
Jan22 = 100 total customers
Feb22 = 110 total customers (so +10 vs last month)
Mar22 = 105 total customers (so -5 vs last month)
When I use the slicer for the period 1-1-2022 to 31-03-2022, it is currently showing the sum of the # of customers: 315
However I would like to show the last value, so # of customers is 105.
When I would change the slicer to 1-1-2022 to 28-02-2022 it should show 110, etc.
I have added an Index column, but not sure what the next step is. Please advice.
Greatly appreciated!
Solved! Go to Solution.
Hi @Svitzer ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Measure =
var _max=MAXX(ALLSELECTED('Table'),[Date])
return
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Date]=_max))
2. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Svitzer ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Measure =
var _max=MAXX(ALLSELECTED('Table'),[Date])
return
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Date]=_max))
2. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi,
Share the download link of your PBI file.
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 |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |