cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply

Getting First row value in Total Column of the mattrix visual

Hi i am using this formula calculate the Ratio %  

Ratio_PC =
var Nozzle= CALCULATE(sum(Sales[UNITS]),filter(sales,Sales[SAL_CAT_TYPE]="NOZZLE"))
var Electrode= CALCULATE(sum(Sales[UNITS]),filter(sales,Sales[SAL_CAT_TYPE]="ELECTRODE"))
VAR Retaining_cap= CALCULATE(sum(Sales[UNITS]),filter(sales,Sales[SAL_CAT_TYPE]="RETAINING CAP"))
VAR Shield= CALCULATE(sum(Sales[UNITS]),filter(sales,Sales[SAL_CAT_TYPE]="SHIELD"))
VAR Swirl_Ring= CALCULATE(sum(Sales[UNITS]),filter(sales,Sales[SAL_CAT_TYPE]="SWIRL RING"))
var Blank_Col= CALCULATE(sum(Sales[UNITS]),filter(sales,Sales[SAL_CAT_TYPE]=BLANK()))
var Total_Units= CALCULATE(sum(Sales[UNITS]),all(Sales[SAL_CAT_TYPE])) 

 

RETURN

if(Electrode,DIVIDE(Electrode,Total_Units),
if(Nozzle,DIVIDE(Nozzle,Total_Units),
if(Retaining_cap,DIVIDE(Retaining_cap,Total_Units),
if(Shield,DIVIDE(Shield,Total_Units),
if(Swirl_Ring,DIVIDE(Swirl_Ring,Total_Units),0
)))))

 

Ayush_tiwari08_1-1681994842175.png

 

 

But if you see the visual in Ratio_pc rows the first Electrode value is 27.18% showing in total column which not correct it should be 100% 

  can anybody explain why i am facing this.

@amitchandak any solution?

 

0 REPLIES 0

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors