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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.