March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello all,
I have trawled the forum looking for an answer but haven't found quite what I need, therefore I am hoping someone can help me directly please.
I have a slicer which shows the Year and Month. Users can select multiple months.
I want to display the results in a text box showing the Year(1) and associated months and Year(2) and associated months e.g.
2023: November, December
2024: January
I've seen many ways of concatonating the months which I've got working, but the years are then out of order
For example:
I've also tried using Min(month) and Min(year) & Max(month) and Max(year) but this results in e.g.
"January 2023 to December 2024"
How can I achieve the desired result please? Many thanks in advance.
Solved! Go to Solution.
@AP23 , Try to avoid auto date hierarchy.
Measure =
var _max = maxx(allselected(Child), Child[data.startDate])
var _min = minx(allselected(Child), Child[data.startDate])
return
format(_min, "mmmm-yyyy") & " to " & format(_max, "mmmm-yyyy")
@AP23 , Try to avoid auto date hierarchy.
Measure =
var _max = maxx(allselected(Child), Child[data.startDate])
var _min = minx(allselected(Child), Child[data.startDate])
return
format(_min, "mmmm-yyyy") & " to " & format(_max, "mmmm-yyyy")
Thanks so much. Simple when you know how!!
Works perfectly 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
53 | |
44 |
User | Count |
---|---|
204 | |
105 | |
99 | |
64 | |
54 |