cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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?

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?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors