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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ramireddy123
Frequent Visitor

Groupy by from selected columns

Hi ,

  

 

I have four tables ,i want to do group by four columns from four tables as well as aggregate value from that.

 

 

 

 

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @Ramireddy123,

 

Could you post your table structures with some sample/mock data and the expected result, so that we can better assist on this issue?

 

It's better to share a dummy pbix file which can reproduce the issue. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploadingSmiley Happy

 

Regards

select    DATE_PART('year', a11.claim_date::date) AS YEAR_PART,
    a11.current_claim_status AS current_claim_status,
    a11.current_claim_status AS claims_processing_stage_id,
    a12.claim_status_id AS claim_status_id,
    count(distinct a11.claim_id) AS WJXBFS1
from    public.claims    a11
    join    public.claimsprocessingstages_master    a12
      on     (a11.current_claim_status = a12.claims_processing_stage_id)
where    a12.claim_status_id in ('CLS_001')
group by    DATE_PART('year', a11.claim_date::date),
    a11.current_claim_status,
    a11.current_claim_status,
    a12.claim_status_id

 

i want same output with DAX

 

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.