Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi all,
I'am working on a dashboard to show the development of a fleet. The dashboard consists of mainly three components:
1. A slicer to select the period,
2. A KPI that needs to show the value of the last month selected in the sliced,
3. A bar chart that shows the development of the selected months.
The issue is that when multiple months are selected in order to show a proper development of the fleet in the bar chart, the KPI card show the sum of the selected months. I aim to show in the KPI card only the last selected month of the slicer input.
The fields I use are:
1. PeriodID
2. Actuals (this consists the value to represent)
In the KPI card and bar chart I use filters to show the correct data.
I tried to write a measure for this, but I was unable to have it working. Hope somebody knows the answer.
Thanks in advance,
Thom
Solved! Go to Solution.
Something like
@Thomvdw , Try like
measure =
var _max = maxx(allselected(period), Period[period])
return
calculate([goal], filter(Period, Period[period] =_max))
or
measure =
var _max = maxx(allselected(period), Period[period])
return
calculate([goal], filter(Table, Table[period] =_max))
Something like
Many thanks Remyo, your solution worked for me!
Thanks for your quick reply!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
71 | |
68 | |
50 | |
31 |
User | Count |
---|---|
118 | |
100 | |
73 | |
65 | |
40 |