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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Help with Dax to create a filtered selection based on two grouped columns

 

I have this report with the following rules:

 

 

Olajumi_0-1629226357245.png

 

 

Check PBIX: 

https://drive.google.com/file/d/1C1xb-CGPMWVs1qyS3e9HtPr2IWgTM_iW/view?usp=sharing

 

The table  "report ProducerConsumerTaskCodes"  is a subset of "report ConsumerTaskCodes".

Card "Total codes used by firm for all clients"  is from table "report ProducerConsumerTaskCodes"  

Card  "Total number of codes used by all firms"  is from table "report ConsumerTaskCodes".

Card "Total codes used by firm for all clients"  is not expected to be equal to the sum of rows in "codes used by firm" because only unique codes aggregated.  

 

Also, 

"Total count of codes used by all firms" is not expected to be equal to the sum of rows in "Codes used by firm" because only distinct codes (Clientname+taskcode) are to be aggregated.  Currently it is based on just taskcode - wrong.      

 

The problem:

1.  I need to extract distinct/count of  Clientname+taskcode (not just based on taskcode as currently implementedfor both colunms. 

2. Only codes with sum of "report ConsumerTaskCodes" - confidencescore for selected Clientname+taskcode  > 50 are to be considered in the reported (filtered).

3. Note:  It does seem like I have an issue with relationshiop.  Please see tab Page 1.  

 

 

PBIX:  https://drive.google.com/file/d/1C1xb-CGPMWVs1qyS3e9HtPr2IWgTM_iW/view?usp=sharing

 

 

 

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Has the problem be solved?

 

Best Regards,

Jay

Anonymous
Not applicable

@aj1973 

Pull into the table any non-additive column from "report ProducerConsumerTaskCodes"  table e.g taskcode, or concumerId.  It breaks.  Obviously a relationship issue.  This is just ine of the 3 issues mentiooned.  Resolving this should throw reveal the issue with first 2 problems I mentioned.  

aj1973
Community Champion
Community Champion

Here you go

aj1973_0-1629235008365.png

 

Obviously you didn't read my previous reply

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

@aj1973 

May I have yoiur PBIX to see what tables the columns are pulled from?  

You will observe that the field confidencescore is repeated indciating a probale relationship problem.  To confirm this, in Values, you may set Confidencescore to "Don't summerize". 

 

My altimate goal is to :

1.  I need to extract distinct/count of  Clientname+taskcode (not just based on taskcode as currently implementedfor both colunms. 

2. Only codes with sum of "report ConsumerTaskCodes" - confidencescore for selected Clientname+taskcode  > 50 are to be considered in the reported (filtered).

  

 

 

aj1973
Community Champion
Community Champion

https://drive.google.com/file/d/1UR0WsbufPMKXzp67JnRWBSKsAgNuRUi7/view?usp=sharing

 

Your requests are not clear.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

Hi @Anonymous 

Somehow Page 1 is bugging. I opened a new page and it is working fine

aj1973_0-1629229989377.png

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors