cancel
Showing results for 
Search instead for 
Did you mean: 
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))

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

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))

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors