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
Wresen
Post Patron
Post Patron

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

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

Thanks som much @amitchandak 

Did not know about userelationship , that works perfectly.

 

 

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.