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
koningii
Frequent Visitor

Urgent Help wanted for having the right dax queries!!

I want to show:

1) Results that are defined by Approved:  contains only 1 component and has Result of max  0.02

2) Results that are defined by Not approved: contains more then 1 component has has Results > 0.02

3) Table (see below nr 2)

 

I tried different ways in DAX but cannot come to the right dax queries for all 3.

 

The data set

Sample code         Master Product           Component         

A                           PERU                            X .                         

B                           PERU                            X .                          

C                          PERU                             X                           

B                          Germany                       Y

A                         Germany                        Y

A                          Netherlands                  Z

C                         Netherlands                   Z

B                         PERU                              W

 

1) Expected results in Pie diagram

Approved

Not Approved

 

2) Expected results table

 

Sample code         Master Product                                    Component

A                           3 (PERU, Germany Netherlands)          3 (X,Y,Z)

B

C

 

1 REPLY 1
kentyler
Solution Sage
Solution Sage

It looks like different samples can have different components in different countries.

In your results table you want to combine the list of countries and combine the list of result codes  for a sample.

But your example shows no indication of how a sample would be approved, or what the data for an approved sample would be.

If you can explain that perhaps we can help with your DAX





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


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.