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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
vpnnm
Frequent Visitor

Different Calculate sum at higher level and lower level in hierachy

Hi All!

I would like to seek for your help on the following Issue:

PROBLEM:

PIC2.png

What i want:

PIC1.png

 

 

 

 

 

 

 

 

How i got the result:

1. Hierachy: Scheme -> D(No.) -> Code

2. Calculate Commission by the follow DAX: 

com15:=CALCULATE(IF(SUM([AMT.NO.INSUR])>=5000,SUM([AMT.NO.INSUR])*0.07,SUM([AMT.NO.INSUR])*0.05),DISB[COMID]=15)

After that use Switch function to determine which Code ,Dealer belong to SchemeID. 

Please refer to the attached file for your information: EXCEL FILE

 

Basically What i want are:

Scheme = Sum of all D(No.) 

D(No.) = Some time just Sum of all Code, Some time with SUM IF CONDITION, 

Code = SUM IF CONDITION as dax showing above

 

Please guide me what i need to do to achive it. Thank you so much for your help. 🙂

 

1 REPLY 1
vpnnm
Frequent Visitor

anyone?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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