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
Anonymous
Not applicable

Sum with multiple filters

Hi, 

I would like to calculate sum of sales by period, channel and account. Which dax formula should i use ?

 

All these column are in the same table.

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You may create a measure using DAX below:

Result =
CALCULATE (
    SUM ( Table[Sales] ),
    ALLEXCEPT ( Table, Table[Period], Table[Channel], Table[Account] )
)

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

Hi , 

 

Attaching the powerbi for the data and pic for the desired result.

 

Result - As shown in the pic, I want a coloumn with sales by Account name and channel. With the suggested formula, I am uanble to create this column.Please click here for the .pbix

 

Results_excel pull all.PNG

Anonymous
Not applicable


@v-yuta-msft wrote:

@Anonymous ,

 

You may create a measure using DAX below:

Result =
CALCULATE (
    SUM ( Table[Sales] ),
    ALLEXCEPT ( Table, Table[Period], Table[Channel], Table[Account] )
)

Community Support Team _ Jimmy Tao

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



Hi ,

I am trying to get a column with a sum of lives by product by channel and account. 

Result should look like this -  Also attaching , the pbix for the data 

 

NewFactDrugCoverage_NI_DerivedFieldNamePharmacy_Benefit_Janssen Account NameFormulary  (2)_Coverage NewFactDrugCoverage_NI_ChannelNewFactDrugCoverage_NI_DerivedFieldValueNewFactDrugCoverage_NI_DrugNameNewFactDrugCoverage_NI_PeriodNewFactDrugCoverage_NI_therapeuticclassPharm_LivesRankSum by account and channels          
J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountManaged MedicaidBio Managed 1Remicade201903Immunology505092663485          
J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountManaged MedicaidBio Managed 2Remicade201903Immunology5829531663485          
J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountManaged MedicaidClinical Criteria RequiredRemicade201903Immunology300233663485          
J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountMedicareClinical Criteria RequiredRemicade201903Immunology350687013512113          
J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountMedicarePA or ST Details UnknownRemicade201903Immunology52432NewFactDrugCoverage_NI_DerivedFieldNamePharmacy_Benefit_Janssen Account NameFormulary  (2)_Coverage NewFactDrugCoverage_NI_ChannelNewFactDrugCoverage_NI_DerivedFieldValueNewFactDrugCoverage_NI_DrugNameNewFactDrugCoverage_NI_PeriodNewFactDrugCoverage_NI_therapeuticclassPharm_LivesRankSum by account and channels
          J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountManaged MedicaidBio Managed 1Remicade201903Immunology505092663485
          J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountManaged MedicaidBio Managed 2Remicade201903Immunology5829531663485
          J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountManaged MedicaidClinical Criteria RequiredRemicade201903Immunology300233663485
          J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountMedicareClinical Criteria RequiredRemicade201903Immunology350687013512113
          J&JImmuno_BioManagedStatusAKPharmAetna, Inc.Covered AccountMedicarePA or ST Details UnknownRemicade201903Immunology524323512113

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.