Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
i´m struggeling to create a Costcenter Report, where some kind of consolidation has to be done.
Attached you can see some sample data.
What i want to achieve is: If a User selects a Costcenter - he should see the Amount of costs.
If a User selects two Costcenter - there are some costs which are transferred between these 2.
For Example a user Filters on the Costcenter: 43960654 and Costcenter 43960552.
He should see all rows, where the specific costcenter is in Column "COSTCENTER".
In Addition to this the user should see all other rows, where the COSTCENTER is blank, but the column "CONSOLIDATION" has both Costcenters included: in this case: 43960654-43960552 or 43960552-43960654 (all Rows with a red boarder).
I tried a lot but i am unable to create a measure and i´m even not sure if this can work?
I hope anyone can help me?
Best Regards!
COSTCENTER | AMOUNT | MONTH | SOURCEOBJECT | COSTELEMENT | CONSOLIDATION | HIERARCHY |
43960654 | 92531,88 | 1 | 43960552 | 6600250000 | TOTAL_COSTS | |
43960654 | 52374,15 | 1 | 43960551 | 6600250000 | TOTAL_COSTS | |
43960654 | 406388,97 | 1 | 6600260000 | TOTAL_COSTS | ||
43960552 | 736 | 1 | 43960654 | 6520000001 | TOTAL_COSTS | |
43960552 | 684,54 | 1 | 43960655 | 6520000016 | TOTAL_COSTS | |
43960552 | 91111,46 | 1 | 4020110000 | TOTAL_COSTS | ||
-92531,88 | 1 | 43960552 | 8888888888 | 43960654-43960552 | TOTAL_COSTS | |
92531,88 | 1 | 43960552 | 9999999999 | 43960654-43960552 | CHARGES | |
-52374,15 | 1 | 43960551 | 8888888888 | 43960654-43960551 | TOTAL_COSTS | |
52374,15 | 1 | 43960551 | 9999999999 | 43960654-43960551 | CHARGES | |
-736 | 1 | 43960654 | 8888888888 | 43960552-43960654 | TOTAL_COSTS | |
736 | 1 | 43960654 | 9999999999 | 43960552-43960654 | CHARGES | |
-684,54 | 1 | 43960655 | 8888888888 | 43960552-43960655 | TOTAL_COSTS | |
684,54 | 1 | 43960655 | 9999999999 | 43960552-43960655 | CHARGES |
Solved! Go to Solution.
Hi @Quakker ,
I suggest you to try to create a measure to filter your visual.
Filter =
VAR _SELECT = VALUES(DimCostcenter[COSTCENTER])
RETURN
IF(MAX('Table'[COSTCENTER]) IN _SELECT || MAX('Table'[SOURCEOBJECT]) IN _SELECT,1,0)
Add this measure into visual level filter and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Quakker ,
I suggest you to try to create a measure to filter your visual.
Filter =
VAR _SELECT = VALUES(DimCostcenter[COSTCENTER])
RETURN
IF(MAX('Table'[COSTCENTER]) IN _SELECT || MAX('Table'[SOURCEOBJECT]) IN _SELECT,1,0)
Add this measure into visual level filter and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |