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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.