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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Get Total of table

Hi All,

 

I have create a table in Power BI Desktop.

It has distinct count by category and items which have been ordered as below.

 

i need the ouput like below table, It simply has (SKU_counts-On_ordered)*total_SKU(distinct)*100.

And it will be dynamically based on the slicer values which i am selecting.

 

Output Needed
Category SKU_Count On Order         Percentage
A             100                  20                  18%         (100-20)/450*100 :- Calculation
B             150                  30                   27%
C             200                  50                   33%
Total      450                  100

Can anyone help me out....

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

use keepfilters function or

try something like this

Sku_count_total=calculate([Count of all order],allexcept(table_name,table_name[status]))

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Sku_count_total=calculate([Count of all order],all(table_name))

 

New measure=divide(([Count of all order]-[order count]),Sku_count_total)

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Anonymous
Not applicable

Thanks PR20048119 ,

 

You are absolutely right in terms of calculation, I have got the numbers what i was looking for.

 

I have just a small question , what to do if i have filteres on ?

 

E.G in the above cae my table is filtered by the status of items which in (Continued/Discontinued).

how to resolve the same in this case?

Anonymous
Not applicable

use keepfilters function or

try something like this

Sku_count_total=calculate([Count of all order],allexcept(table_name,table_name[status]))

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Anonymous
Not applicable

Thanks Praveen,

 

This did the trick.

 

Appreciate your efforts.

 

Thanks a lot again.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.