Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello!
to make it ilustrative, I made this Matrix table so In the cloumns the first raw is divided in "MUESTRAS", "DUPS" AND "PRODUCCIÓN", each one has two quantities "modelos" and "unidades". I need to make some calculations.
1) need to see the percentage of how many "mdelos-producción" are from "modelos-muestras", in excel I will just do this : (modelos producción)cell / (modelos muestras)cell -- and change the number to %
2) I need to do also the following formula:
total "unidades"/ 300
it would be great if I could add it in the same matrix table, but if I need to do it separately I can make it, but really need this two KPIS.
Thank you!@links to meme
Hi,
sorry for my late reply. I am not able to upload my dar base so I am sending a wetransfer with the PBIX and an excel file with the same date. in the excel in the "results" sheet I highlighted in yellow what I want to get.
thank you
Hi @Marango ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create measures.
Percentage Measure =
var _modelos_producci=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) && 'Table'[Tipo de Venta]="Producción" && 'Table'[Type2]="Modelos"))
var _modelos_muestra=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) && 'Table'[Tipo de Venta]="Musetra" && 'Table'[Type2]="Modelos"))
RETURN DIVIDE(_modelos_producci,_modelos_muestra)
total unidades =
var _a=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) && 'Table'[Type2]="Unidades"))
RETURN DIVIDE(_a,300)
(3) Then the result is as follows.
Due to the nature of the matrix, Percentage Measure and total unidades will appear under each category, if you don't want so many duplicates, you can manually scale the columns to hide them. Or display them as visual objects in a table.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please share sample data. and desired output for validation.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |