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
Hi there,
I want to display the total value for a month by using the between slicer.
However, when I try and make it easier for the user so the user can select from the first of the montht the 1st of the second month I gives me the total for both months.
Any ideas to change measure or do I have to change my approach?
I will use the same page to insert SAMEPERIODASLATYEAR and add an KPI card.
Many thanks.
Rgds,
Niel
Solved! Go to Solution.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@niel_orvyn1 , Try to have separate date table Try
measure =
var _max = eomonth(maxx(allselected(Date),Table[Date]),0)
var _min = eomonth(minx(allselected(Date),Table[Date]),-1)+1
return
calculate(sum(Tbale[value]),filter(all(Table[Date]), Table[Date] >=_min && Table[Date] <=_max))
measure =
var _max = eomonth(maxx(allselected(Date),Table[Date]),0)
var _min = eomonth(minx(allselected(Date),Table[Date]),-1)+1
return
calculate(sum(Tbale[value]),filter(all(Date[Date]), Date[Date] >=_min && Table[Date] <=_max))
So time this can group data into few dates. if that happens refer to this video
https://www.youtube.com/watch?v=duMSovyosXE
@niel_orvyn1 , Try to have separate date table Try
measure =
var _max = eomonth(maxx(allselected(Date),Table[Date]),0)
var _min = eomonth(minx(allselected(Date),Table[Date]),-1)+1
return
calculate(sum(Tbale[value]),filter(all(Table[Date]), Table[Date] >=_min && Table[Date] <=_max))
measure =
var _max = eomonth(maxx(allselected(Date),Table[Date]),0)
var _min = eomonth(minx(allselected(Date),Table[Date]),-1)+1
return
calculate(sum(Tbale[value]),filter(all(Date[Date]), Date[Date] >=_min && Table[Date] <=_max))
So time this can group data into few dates. if that happens refer to this video
https://www.youtube.com/watch?v=duMSovyosXE
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy and @amitchandak
Many thanks for both your replies and help. Adding a dimdate table solved my problem, previously I was using the date from the original table😞
Best Regards,
Niel
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |