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
Anonymous
Not applicable

How to get same values using Filter Pane vs. UseRelationship

Hi Community,

Please help me with following issue:

 

TABLES:

1. Issue-Table

IssueKeyIssueGroupOpened
123Group A01.01.2022
124Group B01.01.2022
125Group B01.01.2022
126Group B01.01.2022
127Group B01.01.2022

 


2. History-Table

History_IssueKeyHistory_StatusStatusStartStatusEndCalendar Week StartCalender Week End
123FirstStep12.02.202212.02.202266
124Milestone12.02.202212.02.202266
125Milestone12.02.202218.02.202267
126Milestone12.02.202219.02.202267
127Milestone12.02.202219.02.202267


3. Time-Table

DateCalender Week
12.02.20226
13.02.20226
......
18.02.20227
19.02.20227

 

RELATIONSHIPS:

- Issues & Time: DateOpened; Date (Active)

- Issues & History: IssueKey; History_IssueKey (Active)

- History & Time: Date; StatusStart (Inactive)

- History & Time: Date; StatusEnd (Inactive)

 

OBJECTIVE:

Calender WeekIssues_MilestoneStatusStartedIssues_MilestoneStatusEnded
500
641
703
.........

 

CURRENT MEASURES:

- Issues_MilestoneStatusStarted = CALCULATE(DISTINCTCOUNT(History[History_IssueKey]), History[HistoryStatus] = "Milestone", Issues[Group]="A", USERELATIONSHIP(History[StatusStart], Time[Date])

- Issues_MilestoneStatusEnded = CALCULATE(DISTINCTCOUNT(History[History_IssueKey]), History[HistoryStatus] = "Milestone", Issues[Group]="A", USERELATIONSHIP(History[StatusEnd], Time[Date])

 

Somehow the result i get is this. Both measures have the same results (and somehow I've got more counts than expected).

Calender WeekIssues_MilestoneStatusStartedIssues_MilestoneStatusEnded
500
655
71010
.........

 

If I use a card visual both measures display the same value. When I use the filter pane the cards show the right value:
1. filter CalenderWeekStart = 6 --> Card shows "4"
2. filter CalenderWeekEnd = 6 --> Card shows "1"

 

How can i correct my measures to get the right values in the table (v. "Objective")?

 

Thank you!

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

What is the data in the Time- table? Does not like the following?

vpollymsft_0-1666329960125.png

 

What do you want to calculate? Could you please provide your pbix file without privacy inforatmion and desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.