The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I want to calculate in the % of ventas column, each sub category divided by the ventas category.
For example: divide bebidas row by the total ventas row to show the percentage of how much the bebidas row reprents of total ventas. (if bebidas is 10 and total ventas 100, it should give me 10%)
I want to just have a formula that applies for every row, as I know that I can get a total individual formula for each row by dividing by each row individually (see example below). But the example below just gives me what percentage of ventas is represented by bebidas in the example below, not for every row
@JonathanK1999 , Based on what I got, You need measure like
divide(SUM(ConsolidadoPG[Valor]), CALCULATE(SUM(ConsolidadoPG[Valor]), removefilters(ConsolidadoPG[Sub Categoria]) ))
Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s
Hi @amitchandak, that would give me the % of each row with regards to the parent row. However, I want % of rows divided by the ventas total row, which is not necessarily the parent row
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |