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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Patrick_Pontor
New Member

How synchronize 2 graphics ?

Hello

I want to synchronize 2 graphic box with a general timestamp filter.
My data are organised like that : timestamp / parameter_name / value.
- On TOP graphic, I have data  with parameter_name = Current temperature, Effective temperature setpoint, netatmo_temperature_haut and Temperature probe calibration offset from feb-02 to March-31
- On Bottom graphic, I have data  with parameter_name = Taux de marche from feb-19 to March-28


graphic 1.png
Graphics are correctly syncronized because I use X axis parameter : start = fx( timestamp min) , end =fx(timestamp max),

with : 

timestamp min = CALCULATE(MIN(rawdevicestate_follow[timestamp]),REMOVEFILTERS((rawdevicestate_follow[parameter_name])))
timestamp max = CALCULATE(MAX(rawdevicestate_follow[timestamp]),REMOVEFILTERS((rawdevicestate_follow[parameter_name])))

 

-----------------------------------------------------------------------------
But, when I change the timestamp general filter (from feb-2 ...) , graphics are not synchronized !!
graphic 2.png


Can you help me ?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Patrick_Pontor , try like

 

min = var _1= CALCULATE(MIN(rawdevicestate_follow[timestamp]),REMOVEFILTERS((rawdevicestate_follow[parameter_name]))) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

 

 

max= var _1= CALCULATE(Max(rawdevicestate_follow[timestamp]),REMOVEFILTERS((rawdevicestate_follow[parameter_name]))) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

 

View solution in original post

2 REPLIES 2
Patrick_Pontor
New Member

Thanks !!! It's OK !!

amitchandak
Super User
Super User

@Patrick_Pontor , try like

 

min = var _1= CALCULATE(MIN(rawdevicestate_follow[timestamp]),REMOVEFILTERS((rawdevicestate_follow[parameter_name]))) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

 

 

max= var _1= CALCULATE(Max(rawdevicestate_follow[timestamp]),REMOVEFILTERS((rawdevicestate_follow[parameter_name]))) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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