cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Wresen
Helper V
Helper V

Graph with double month values from same table.

Hi 

I have a solution for this but i think its not the best.

I want the resalut to look like this:

Salesgraph.PNG

 

My data looks like this , its in one table.

salestable.PNG

 

My workaround has been to dublicate this table and connect the 2 tables to a month table (first table , first occurence to Month table and second table , second occurance to month table. see below.

 

connect.PNG

 

My question is if there is a better way to do this .

 

Thanks so much

/Added file.

https://drive.google.com/file/d/1-GPIroimxO3Z4bZugWqnKJZ3_FXqrO-O/view?usp=sharing

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Wresen , You should join both these to common month year or date table, and  one join will be inactive, that will be activated using userelationship in a measure

 

example

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Wresen , You should join both these to common month year or date table, and  one join will be inactive, that will be activated using userelationship in a measure

 

example

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Thanks som much @amitchandak 

Did not know about userelationship , that works perfectly.

 

 

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors