Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Guys,
I am creating a model where I have to allocate admin cost between two departments. So I have deparmtent mapping which allows me to create a slicer and look at the cost of each department individually. I have created measures through which I can see the allocated cost i.e. Sales Cost = (Sales+(50% Admin))
Now I want the same functionality through slicers. So when I select let's say Sales & Admin, the cost being shown in the pivot is the total cost. Whereas, I want to see "Total Sales cost" & "50% Admin cost".Current total
Current Sales
Current Admin
What it should be
Solved! Go to Solution.
Hi @zubairs ,
You can create a measure like this to calculate:
Re =
VAR _sum =
CALCULATE ( SUM ( 'Table'[Values] ), 'Table'[Department] = "KSA Sales" )
+ 0.5
* CALCULATE ( SUM ( 'Table'[Values] ), 'Table'[Department] = "KSA Branch Admin" )
RETURN
IF (
HASONEVALUE ( 'Table'[CE mapping] ),
[Last Year],
IF ( HASONEFILTER ( 'Table'[Department] ), [Last Year], _sum )
)
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @zubairs ,
You can create a measure like this to calculate:
Re =
VAR _sum =
CALCULATE ( SUM ( 'Table'[Values] ), 'Table'[Department] = "KSA Sales" )
+ 0.5
* CALCULATE ( SUM ( 'Table'[Values] ), 'Table'[Department] = "KSA Branch Admin" )
RETURN
IF (
HASONEVALUE ( 'Table'[CE mapping] ),
[Last Year],
IF ( HASONEFILTER ( 'Table'[Department] ), [Last Year], _sum )
)
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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!
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 19 | |
| 14 | |
| 12 | |
| 12 | |
| 9 |