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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
jimod
Regular Visitor

Difficulty with measures

 
I have a dax measue that evaluates conditions in the rows of table based on a combination of values from another table:
Autorisatie_fact = IF (
        COUNTROWS (
            FILTER (
                FACT_Realisatie,
                FACT_Realisatie[Kostenplaats_Key] = LOOKUPVALUE(RLS_Rol[Kostenplaats_Key], RLS_Rol[Kostenplaats_Key], FACT_Realisatie[Kostenplaats_Key]) ||
                FACT_Realisatie[Product_Key] = LOOKUPVALUE(RLS_Rol[Product_Key], RLS_Rol[Product_Key], FACT_Realisatie[Product_Key])
            )
        ) > 1,
        1,
        0
    )
 
There are purposefully no relations between the tables. I have another measure that returns another column text value if the conditions are met:
Crediteur =
IF(
        [Autorisatie_fact] = 1,
        SELECTEDVALUE(FACT_Realisatie[Crediteur]),
        "***"
   
)
This works fine but, now i want also to be able to summarize the text values output in order to aggregate the rows with other measures sum average etc...it needs to be done in measures in order to make the filter context apply.
 I have spend a week talking to chat gpt but still no working result. 
 
It should be something like: 
crediteurconditionbedrag
A110
B120
A110
C010

 

CrediteurBedrag 
A20 
B20 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jimod ,

 

(1)Here are my test data.

vtangjiemsft_0-1716789046309.png

(2) We can create a new table.

Table 2 = FILTER(SUMMARIZE('Table',[Rediteur],"bedrag",SUM('Table'[bedrag])),[Rediteur] in {"A","B"})

(3) Then the result is as follows.

vtangjiemsft_1-1716789140163.png

 

If this doesn't help you, give examples of input and output data and explain your logic. Preferably a PBIX file (take care to protect your private data)

 

Best Regards,

Neeko Tang

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jimod ,

 

(1)Here are my test data.

vtangjiemsft_0-1716789046309.png

(2) We can create a new table.

Table 2 = FILTER(SUMMARIZE('Table',[Rediteur],"bedrag",SUM('Table'[bedrag])),[Rediteur] in {"A","B"})

(3) Then the result is as follows.

vtangjiemsft_1-1716789140163.png

 

If this doesn't help you, give examples of input and output data and explain your logic. Preferably a PBIX file (take care to protect your private data)

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.