Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
AndreiK15
Helper II
Helper II

Wrong values if Calendar Slicer is set to Between

Hello everyone,

 

Why do I get wrong values if I set my Calendar slicer to between, but when select it to dropdown, will get the right value for Net Trans Amt?

 

AndreiK15_0-1645534311241.png

 

AndreiK15_1-1645534387767.png

 

Any idea?

 

Thanks!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AndreiK15 , Create a new measure and put on card viusal and check diff between two

 

var _max = maxx(allselected('Date'),'Date'[Date])
var _min = maxx(allselected('Date'),'Date'[Date])
return

_max & " " & _min

 

If they are the same in both cases, share your measure to check.

 

Are you using some time intelligence functions?

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
AndreiK15
Helper II
Helper II

@v-xiaotang Thanks for replay, but I managed to solve the issue based on @amitchandak answer. I have removed filters and changed calendar table. 

AndreiK15
Helper II
Helper II

@amitchandakthanks for your quick replay... this is what I get and don't understand why it retruns the end of the year as max:

 

AndreiK15_0-1645536241775.png

 

Hi @AndreiK15 

I cannot reproduce that behavior in my side. In my test, it returns

vxiaotang_1-1645764423087.png

Measure = 
var _date1 = MINX(ALLSELECTED('Table'),'Table'[date])
var _date2 = MAXX(ALLSELECTED('Table'),'Table'[date])
return _date1&UNICHAR(10)&_date2

Could you please provide a .pbix file with that problem? Thanks

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@AndreiK15 , Create a new measure and put on card viusal and check diff between two

 

var _max = maxx(allselected('Date'),'Date'[Date])
var _min = maxx(allselected('Date'),'Date'[Date])
return

_max & " " & _min

 

If they are the same in both cases, share your measure to check.

 

Are you using some time intelligence functions?

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors