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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
abcttt233
Frequent Visitor

Creating a virtual table and joining back on

I have two tables in power QI

 

Table Plan

 

Table Risks

 

These two tables join together by id and it's a many to one relationship from Plan --> Risks.

 

I want to sum a field called Plan Net in Table Plan by a column Plan Name and attach that aggregated Value back down to each risk.

 

Example plan table looks like this:

 

Plan Table 
Plan NamePlan Net
A1000
B2000
A

3000

 

Result  
IDPlan NamePlan Net
1A4000
2B2000
3A4000

 

I want the result table to look like this.

 

I am trying to do this in a measure:

 

PlanAggregated =
CALCULATE(
    [sum of Plan Net],
    ALLSELECTED(Risk[Id]))
 
However, this does not work and it seems to join on random IDs not the ones I would expect. I have also tried ALLEXCEPT which also doesnt work.
 
Is there a way to do this?

 

1 REPLY 1
ryan_mayu
Super User
Super User

what is your risk table looks like?

so the result is only based on the plan table?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.