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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mohsenask
Helper II
Helper II

Total two rows for a measure

 

mohsenask_0-1636623767034.png

 

All_Fees

[fee_category]

All_Payouts

[charge_id]

[billing_amount]

[gross]

MS_GROSS = sum(All_Payouts[gross])
MS_BillingAmt = (sum((All_Fees[billing_amount])))
MS_%_Applied = [MS_BillingAmt]/[MS_GROSS]
 
I want to calculate the MS_%_Applied on the total for both fee_category i.e. 3.09%
 
Once thats calculated, i need a calculated colum that checks if the '% Applied' > 2.05 then its PREMIUM else its NOT PREMIUM
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mohsenask ,

 

You could use SUMX() function to get the sum of measure.

For example:

 

Measure 4 = SUMX(ALL('Table'),[Measure 3])

 Capture.PNG

 

Best Regards,

Jay

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @mohsenask ,

 

You could use SUMX() function to get the sum of measure.

For example:

 

Measure 4 = SUMX(ALL('Table'),[Measure 3])

 Capture.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@mohsenask , I think these should work

 

MS_GROSS = sum(All_Payouts[gross])
MS_BillingAmt = (sum((All_Fees[billing_amount])))
MS_%_Applied = [MS_BillingAmt]/[MS_GROSS]

 

Then you can have a measure

if([MS_%_Applied ] >.0205 , "Premium", "Not Premium")

 

 

In case you need that as a filter explore bucketing

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak - i have those measures but MS_%_Applied is actually calculating the individual % for the fee_category

 

I want to calculate the % Applied = (% Applied of BillingAmt)  + (% Applied of Gross)  i.e. 3.08+0.11= 3.19 into another column?? or where?

 

So the % applied = 3.19 (for both network_fee and stripe_fee)

 

Then the measure if([MS_%_Applied ] >.0205 , "Premium", "Not Premium") can be created.

@mohsenask , You can not have column now you can measure

Both should be measure

M1 =

[% Applied of BillingAmt] + [% Applied of Gross]

 

Or

AverageX(values(Table[Charge id]) ,[% Applied of BillingAmt] + [% Applied of Gross]  )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

M1 =

[% Applied of BillingAmt] + [% Applied of Gross]

 

are these two new measures to create and then sum them into M1 ?

@amitchandak 

To make myself clearer, these are two records for ONE charge ID. So one unique ID has two records. I want to calculate the total of the MS_%Applied for the two records for each charge_ID. There could be more rows for each charge ID too

@amitchandak @v-angzheng-msft 

Screenshot 2021-11-11 at 14.27.31.png

 

Need to identify whether premium or not based on the total of MS_%_Applied for the two rows that belong to ONE charge_ID

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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