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.
Buenos días!! Tengo el dato de costos indirectos de un año que deben ser distribuidos en los metros cuadrados vendidos totales de cada uno de los años que tengo en la tabla... Que formula puedo usar para que en la columna me aparezcan los costos indirectos totales de cada uno de los años?
To calculate the total indirect costs for each year distributed over the total square meters sold, you can use the following DAX formula:
IndirectCostsPerYear =
VAR TotalIndirectCosts = [Indirect Costs Amount] // Replace with your total indirect costs value
VAR TotalSqMetersAllYears = CALCULATE(SUM(YourTable[SquareMetersSold]), ALL(YourTable))
VAR TotalSqMetersThisYear = SUM(YourTable[SquareMetersSold])
RETURN
TotalIndirectCosts * (TotalSqMetersThisYear / TotalSqMetersAllYears)
Explanation:
TotalIndirectCosts
: The total indirect costs amount you want to distribute.TotalSqMetersAllYears
: The sum of square meters sold across all years.TotalSqMetersThisYear
: The sum of square meters sold in the current year.Note: Replace YourTable
with your actual table name and [SquareMetersSold]
with the column name that contains the square meters sold data. Also, replace [Indirect Costs Amount]
with your indirect costs value.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
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 |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |