Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
medlalami
Helper I
Helper I

Compare entries between two data

Hi all,

I have a table named DimDate that contains Dates in different format. And another table named Problems, that have two fields (created on and closed on), that I linked with the field Date, available on DimDate table:

relation.png

First relation and active one:

relation1.png

The second relation (non active):

relation2.png

Now on my graph, I need to display and compare between the created problems, basing into the creation date, and the closed problems (basing into the closure date). I have also a field name State, that contains following values:

  • Assigned
  • Draft
  • In Progress
  • Closed
  • Resolved

I need to display my graphe like that:

exemple.png

But I can only display the created problems, because the relation is active:

exemple2.png

param.png

I'm confused and I know that something is wrong but I can't see whats wrong.

1 ACCEPTED SOLUTION
medlalami
Helper I
Helper I

Solved but creating a mesure:

Closure = CALCULATE(COUNTROWS(Problems),USERELATIONSHIP(Problems[Closed On], DimDate[Date]))

View solution in original post

2 REPLIES 2
medlalami
Helper I
Helper I

Solved but creating a mesure:

Closure = CALCULATE(COUNTROWS(Problems),USERELATIONSHIP(Problems[Closed On], DimDate[Date]))
medlalami
Helper I
Helper I

graph1.png

I have a problem with the relations. The values of opened problems are correct but not the case for the closed values.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.