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.
Hello everyone!
Hope you all are fine.
I want some help related to measure filtering. I have Measue A in which there is calculated quantity and Measure B in which there is calculated amount. I want filter amount .i.e. Measure B by quantity in Measure A having values greater than 1, in simple words:
Sum Measure B , Filter Measure A > 1 .
Thanks.
Solved! Go to Solution.
Hi @Ibadkhan ,
Based on your description, I have created this sample table:
MeasureA:
MeasureA =
CALCULATE (
COUNT ( 'Table'[Class] ),
FILTER ( ALL ( 'Table' ), 'Table'[Class] IN DISTINCT ( 'Table'[Class] ) )
)
MeasureB:
MeasureB =
CALCULATE ( SUM ( 'Table'[Sales] ), FILTER ( 'Table', [MeasureA] > 1 ) )
Attached a sample file in the below, hopes to help you.
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 @Ibadkhan ,
Based on your description, I have created this sample table:
MeasureA:
MeasureA =
CALCULATE (
COUNT ( 'Table'[Class] ),
FILTER ( ALL ( 'Table' ), 'Table'[Class] IN DISTINCT ( 'Table'[Class] ) )
)
MeasureB:
MeasureB =
CALCULATE ( SUM ( 'Table'[Sales] ), FILTER ( 'Table', [MeasureA] > 1 ) )
Attached a sample file in the below, hopes to help you.
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.
@Ibadkhan , Can you share sample data and sample output in table format? Then I can tell. Usually depening on need we use a context.
@Ibadkhan , You need some context / gorup by for that
//Where should mesure gorup to filter
SumX(filter(values(Table[Column]) , [Measure A] > 1 ) ,[Measure B] )
Assumed data should group at Table[Column] and then filter measureA. In case you need at the row level, use some unique row id
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 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |