cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vanquisher11
Frequent Visitor

Measure from 2 Different Tables

Hi all,

 

I wanted to create summary table to show the scores of each objective.

 

So at the moment, I have 3 tables:

Dimension table [Objectiveskey, Measure Name, Description, Department]

Fact table 1[Objectivekey, Datekey, score, target,...]

Fact table 2[Ojectivekey, Datekey, condition, confidence rating, ...]

 

So I was hoping to create a visual that shows,

Measure Name, Score/Condition, Target

 

But not sure what's the best approach and how to deal with this?

Tried merging the tables and creating a conditional column, but so far doesn't work.

Will a nested if measure suffice? Not sure how what commands is best though.

 

Many thanks

 

Matt

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @vanquisher11 ,

Did I answer your question? If you can get the correct result, please accept as solution so that users with the same problem can find it quickly. If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

v-kkf-msft
Community Support
Community Support

Hi @vanquisher11 ,

You may create two measures:

_condition = 
CALCULATE(
    SUM('Fact table 2'[condition]),
    FILTER(
        ALL('Fact table 2'),
        'Fact table 2'[Objectivekey] = MAX('Dimension table'[Objectiveskey])
        && 'Fact table 2'[Datekey] = MAX('Fact table 1'[Datekey])
    )
)
score/condition = DIVIDE( MAX('Fact table 1'[score]), [_condition] )

v-kkf-msft_0-1616471983357.pngv-kkf-msft_1-1616472051243.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

lbendlin
Super User III
Super User III

Measures can work with data from different tables even if the tables are not connected in the data model. Please provide sample data in usable format (not as a picture) and show the expected outcome.

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Top Kudoed Authors