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
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors