cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors