Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hey. I do have sales data set where part of the sales is "unallocated" i.e. sales department is missing. I need help creating measure, which would allocate those "unallocated" sales to other available departments proportionally (based on their sales). This is what I do have and what I'm trying to achieve:
Need to play with filters, but that part is still quite confusing for me. Thanks in advance!
Solved! Go to Solution.
Hi,
Assuming you already have a measure named TotalSales, defined as:
Total Sales =
SUM( 'Table'[Sales] )create the following additional measure:
MyMeasure =
VAR Department =
MIN( 'Table'[Department] )
VAR SalesUnallocated =
CALCULATE( [Total Sales], 'Table'[Department] = "Unallocated" )
VAR SalesExcUnallocated =
CALCULATE( [Total Sales], ALL( 'Table'[Department] ) ) - SalesUnallocated
VAR MyWeight = [Total Sales] / SalesExcUnallocated
VAR AdjustedSales = MyWeight * SalesUnallocated + [Total Sales]
RETURN
IF( Department = "Unallocated", 0, AdjustedSales )Regards
Hi,
Assuming you already have a measure named TotalSales, defined as:
Total Sales =
SUM( 'Table'[Sales] )create the following additional measure:
MyMeasure =
VAR Department =
MIN( 'Table'[Department] )
VAR SalesUnallocated =
CALCULATE( [Total Sales], 'Table'[Department] = "Unallocated" )
VAR SalesExcUnallocated =
CALCULATE( [Total Sales], ALL( 'Table'[Department] ) ) - SalesUnallocated
VAR MyWeight = [Total Sales] / SalesExcUnallocated
VAR AdjustedSales = MyWeight * SalesUnallocated + [Total Sales]
RETURN
IF( Department = "Unallocated", 0, AdjustedSales )Regards
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!