March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |