Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Dear All,
I would like to seek some help regarding the BI filters and tables.
I want to build a table with the combined value from both Product AAA & Prodcut BBB by applying the different filter value.
I have uploaded the PBI file here https://drive.google.com/file/d/15jO-jFcpn_NIW03ixCnthKkYoj1YpvBY/view?usp=sharing
Solved! Go to Solution.
Hi @Hong_HW ,
I updated your sample pbix file(see attachment), please check whether that is what you want.
1. Create a calculated table as below copied with the table 'Time_Required':
Time_Required2 = 'Time_Required'
2. Create a slicer with the field [Time Required] in new table 'Time_Required' to replace the slicer "Filter for Product BBB"
3. Remove the relationship between Time_Required and Test_Data
4. Create two measures as below and place them on the top two matrix Values field instead of the original Values field
AAA =
CALCULATE (
SUM ( 'Test_Data'[Value] ),
FILTER (
'Test_Data',
'Test_Data'[Time Required] = SELECTEDVALUE ( 'Time_Required'[Time Required] )
)
)
BBB =
CALCULATE (
SUM ( 'Test_Data'[Value] ),
FILTER (
'Test_Data',
'Test_Data'[Time Required] = SELECTEDVALUE ( 'Time_Required2'[Time Required] )
)
)
5. Create a measure as below to get the sum value of product AAA and BBB
Measure =
SUMX ( FILTER ( 'Test_Data', 'Test_Data'[Product Name] = "AAA" ), [AAA] )
+ SUMX ( FILTER ( 'Test_Data', 'Test_Data'[Product Name] = "BBB" ), [BBB] )
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Hong_HW ,
I updated your sample pbix file(see attachment), please check whether that is what you want.
1. Create a calculated table as below copied with the table 'Time_Required':
Time_Required2 = 'Time_Required'
2. Create a slicer with the field [Time Required] in new table 'Time_Required' to replace the slicer "Filter for Product BBB"
3. Remove the relationship between Time_Required and Test_Data
4. Create two measures as below and place them on the top two matrix Values field instead of the original Values field
AAA =
CALCULATE (
SUM ( 'Test_Data'[Value] ),
FILTER (
'Test_Data',
'Test_Data'[Time Required] = SELECTEDVALUE ( 'Time_Required'[Time Required] )
)
)
BBB =
CALCULATE (
SUM ( 'Test_Data'[Value] ),
FILTER (
'Test_Data',
'Test_Data'[Time Required] = SELECTEDVALUE ( 'Time_Required2'[Time Required] )
)
)
5. Create a measure as below to get the sum value of product AAA and BBB
Measure =
SUMX ( FILTER ( 'Test_Data', 'Test_Data'[Product Name] = "AAA" ), [AAA] )
+ SUMX ( FILTER ( 'Test_Data', 'Test_Data'[Product Name] = "BBB" ), [BBB] )
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Thank you so much, it works 🙂
User | Count |
---|---|
101 | |
68 | |
58 | |
47 | |
46 |