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
qaiseralam
Regular Visitor

calculating percentage drop in power BI matrix visual i.e. percentage drop between the rows

  I have power BI matrix visual which look like this 

 

qaiseralam_0-1651480778697.png

 

i want to calculate percentage for alternate rows 

percentage for "PERSONLA_DETAIL_FILLED" will be   (130237/224232) * 100

similarly for "OTP_SUBMIT_VALID" will be (119492/130237) * 100 and so on I am not able to write measure for the same . 

 

Data snap look like this 

 

qaiseralam_1-1651481037156.png

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @qaiseralam 

Thanks for reaching out to us.

You can add an index column through split, as suggested by amitchandak.

vxiaotang_0-1652255115790.png

Measure1 = 
var _pre= CALCULATE(SUM('Table'[COUNT]),FILTER(ALL('Table'),'Table'[EVENT_TYPE - Copy.1]=MIN('Table'[EVENT_TYPE - Copy.1])-1))
var _this=SUM('Table'[COUNT])
return DIVIDE(_this,_pre)*100

result

vxiaotang_1-1652255888594.png

But if you don't want to add other columns, you can try this, 

create the measures below,

ID = 
var _len=SEARCH(".",MIN('Table'[EVENT_TYPE]))-1
return value(LEFT(MIN('Table'[EVENT_TYPE]),_len))
Measure2 = 
var _preID=[ID]-1
var _pre= CALCULATE(SUM('Table'[COUNT]),FILTER(ALL('Table'),'Table'[ID]=_preID))
var _this=SUM('Table'[COUNT])
return DIVIDE(_this,_pre)*100

result

vxiaotang_2-1652256768615.png

Best Regards,

Community Support Team _Tang

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

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @qaiseralam 

Thanks for reaching out to us.

You can add an index column through split, as suggested by amitchandak.

vxiaotang_0-1652255115790.png

Measure1 = 
var _pre= CALCULATE(SUM('Table'[COUNT]),FILTER(ALL('Table'),'Table'[EVENT_TYPE - Copy.1]=MIN('Table'[EVENT_TYPE - Copy.1])-1))
var _this=SUM('Table'[COUNT])
return DIVIDE(_this,_pre)*100

result

vxiaotang_1-1652255888594.png

But if you don't want to add other columns, you can try this, 

create the measures below,

ID = 
var _len=SEARCH(".",MIN('Table'[EVENT_TYPE]))-1
return value(LEFT(MIN('Table'[EVENT_TYPE]),_len))
Measure2 = 
var _preID=[ID]-1
var _pre= CALCULATE(SUM('Table'[COUNT]),FILTER(ALL('Table'),'Table'[ID]=_preID))
var _this=SUM('Table'[COUNT])
return DIVIDE(_this,_pre)*100

result

vxiaotang_2-1652256768615.png

Best Regards,

Community Support Team _Tang

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

amitchandak
Super User
Super User

@qaiseralam , You can split the event to number parts separately.

Split Column Power Query: https://youtu.be/FyO9Vmhcfag

and then you can create a separate table with distinct event to

 

You can get value of last event like

maxx(filter(allselecetd(event), Table[Event] = max(Table[Event]) -1) ,[Count]) 

 

 

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

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