Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Apologies if this is a bit basic and my Subject title is vague - I'm a strong beginner at best!
I've two matrices and a filter with 'Budget' selected. The difference between the matrices is that in the second instead of using the implicit measure 'Value' from BudgetCosts (which is summed) I've used an explicit measure Budget Cost = SUM(BudgetCosts[Value])
Problem: For the row field, Item Description, I want to see values only in the Amount column (i.e. the amounts relating to the items from the ActualsCosts table) and nothing in the Value/Budget Cost columns - as these values from the BudFctCost table should relate only to Account Code (i.e. Line Item) and Supplier ID (i.e. Supplier Name). I was hoping that maybe this can be resolved through DAX...
Questions:
Thanks for any help!
Matrix 1, Filter, Matrix 2, Fields (Matrix 1):
Data Model and Relationships:
Lookup Tables (Mapping and Supplier):
Fact Tables (ActualsCosts and BudFctCost):
Solved! Go to Solution.
Hi @DanDan ,
You can update the measure [Budget Cost ] as below and create another new measure to replace it on the matrix, please find the details in the attachment.
Budget Cost =
IF (
(
ISINSCOPE ( 'Mapping'[Line Item] )
&& NOT ( ISINSCOPE ( 'ActualsCosts'[Item Description] ) )
)
|| (
NOT ( ISINSCOPE ( 'ActualsCosts'[Item Description] ) )
&& ISINSCOPE ( 'Supplier'[Supplier Name] )
),
SUM ( BudgetCosts[Value] ),
BLANK ()
)
Measure = SUMX(VALUES('Mapping'[Line Item]),[Budget Cost])
Best Regards
Hi @DanDan ,
You can update the measure [Budget Cost ] as below and create another new measure to replace it on the matrix, please find the details in the attachment.
Budget Cost =
IF (
(
ISINSCOPE ( 'Mapping'[Line Item] )
&& NOT ( ISINSCOPE ( 'ActualsCosts'[Item Description] ) )
)
|| (
NOT ( ISINSCOPE ( 'ActualsCosts'[Item Description] ) )
&& ISINSCOPE ( 'Supplier'[Supplier Name] )
),
SUM ( BudgetCosts[Value] ),
BLANK ()
)
Measure = SUMX(VALUES('Mapping'[Line Item]),[Budget Cost])
Best Regards
That's amazing! It works perfectly. Thanks so much @v-yiruan-msft - what a Pro! 😀
ISINSCOPE - I need to learn this!
Very much appreciated,
Dan
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
141 | |
107 | |
100 | |
82 | |
74 |