Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello there,
I'd like to explain what i'm actually working on so it would be easier to find the solution I believe.
I have scenarios and there are two quotes red team and yellow team. Each scenario has variables and their values. Column structure:
scenario_id | variable_id | quantity_type | quantity | unit_cost | price | team_name |
0001_abcd_99 | XX123 | lbs | 10 | 0.5 | 5 | teamA |
0001_abcd_99 | XX123 | lbs | 20 | 0.4 | 8 | teamB |
and I get the values by these functions:
Solved! Go to Solution.
please try
measure_test =
SUMX (
DISTINCT ( 'Appended_Table'[scenario_id] ),
INT ( [avg variance between A & B] > 0.10 )
)
SUMX iterates each scenario available in the current filter context (in the total cell for example, the scenarios available are the scenarios defined by the outer filter context), and evalute if the measure is > 0.1
INT converts TRUE to 1 and FALSE to 0
SUMX will act as a counter adding 1 for each true iteration thus counting the scenarios that fulfill the condition.
please try
measure_test =
SUMX (
DISTINCT ( 'Appended_Table'[scenario_id] ),
INT ( [avg variance between A & B] > 0.10 )
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |