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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Prakash1050
Helper III
Helper III

Need Dax Measure

Hi All,

        I need DAX Measure for not creating relationship and get the answer. 

        I have 3 Tables A, B, C.

        A table have BU, Composite and Key columns.

        B table have Key, Entity ID and Fam ID.          

        C table have Entity ID and Value.

        A table key column and B table key column are common column.

        B table Entity ID column and C table Entity ID column are common column.

        I need DAX for in the filter pane if A table key column selected the B table key column also filterd as well as B table key column direct to the B Table Entity ID Column also filtered and the same Enitity ID in C table column also filterd and get the Value Column answer.

       I hope this scenario you understand please help me to acheive this DAX.

 

Thanks in Advance.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Prakash1050 ,

Please update the formula of measure as below and check if it can work even though filter the value of field [BU] or [Composite] field in the table A. 

Measure = 
VAR _selkeys =
    CALCULATETABLE (
        VALUES ( 'A'[Key] ),
        ALLSELECTED('A')
    )
VAR _entitylist =
    CALCULATETABLE (
        VALUES ( 'B'[Entity ID] ),
        FILTER ( 'B', 'B'[Key] IN _selkeys )
    )
RETURN
    CALCULATE ( SUM ( 'C'[Value] ), FILTER ( 'C', 'C'[Entity ID] IN _entitylist ) )

vyiruanmsft_0-1687485603664.png

Best Regards

View solution in original post

4 REPLIES 4
Prakash1050
Helper III
Helper III

Hi @Anonymous 
          This Measure is worked when i filtered A table Column Key. If filtered BU or Composite in Table A the value showing same value not filtered values

Anonymous
Not applicable

Hi @Prakash1050 ,

Please update the formula of measure as below and check if it can work even though filter the value of field [BU] or [Composite] field in the table A. 

Measure = 
VAR _selkeys =
    CALCULATETABLE (
        VALUES ( 'A'[Key] ),
        ALLSELECTED('A')
    )
VAR _entitylist =
    CALCULATETABLE (
        VALUES ( 'B'[Entity ID] ),
        FILTER ( 'B', 'B'[Key] IN _selkeys )
    )
RETURN
    CALCULATE ( SUM ( 'C'[Value] ), FILTER ( 'C', 'C'[Entity ID] IN _entitylist ) )

vyiruanmsft_0-1687485603664.png

Best Regards

Hi @Anonymous 
This Measure is Working Thank you so much

Anonymous
Not applicable

Hi @Prakash1050 ,

You can create a measure as below to get it, please find the details in the attachment.

Measure = 
VAR _selkeys =
    ALLSELECTED ( 'A'[Key] )
VAR _entitylist =
    CALCULATETABLE (
        VALUES ( 'B'[Entity ID] ),
        FILTER ( 'B', 'B'[Key] IN _selkeys )
    )
RETURN
    CALCULATE ( SUM ( 'C'[Value] ), FILTER ( 'C', 'C'[Entity ID] IN _entitylist ) )

vyiruanmsft_1-1687328470840.pngvyiruanmsft_0-1687328439765.png

Best Regards

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.