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.
I need an expression to count (identify) those amounts greater than 1000 from an existing column in powerbi paginated reports.
column (payments)
$54
$23
$40
$14
$28
table
sum of the payment = 239
count payments under $25 = 2 (this is the expression that I need)
Please your help is greatly appreciated. no experience in rdl.
Solved! Go to Solution.
I suggest, if not already done, to also view an introduction into paginated reports.
My knowledge is rusty but this should work out 😉
I cannot easily share this file since I'm on a work laptop so if you need it mailed, dm me.
Basically I can think of 2 options:
- you add a (calculated) column if you have e.g. an SQL query:
WITH sales_data AS (
SELECT 54 AS value
UNION ALL
SELECT 23 AS value
UNION ALL
SELECT 40 AS value
UNION ALL
SELECT 14 AS value
UNION ALL
SELECT 28 AS value
)
SELECT value,
case
when value < 25
then 1
else 0
end as paymentsUnderBorder FROM sales_data;
Then you can sum up the occurences with an expression: =Sum(Fields!paymentsUnderBorder.Value)
Or you can distinctcount the values based on a condition at runtime in the report: =countdistinct(IIF(Fields!value.Value < 25, Fields!value.Value, Nothing)) This way you even can choose if you want to count the same offending value only one time or not > countdistinct vs count.
The result:
I suggest, if not already done, to also view an introduction into paginated reports.
My knowledge is rusty but this should work out 😉
I cannot easily share this file since I'm on a work laptop so if you need it mailed, dm me.
Basically I can think of 2 options:
- you add a (calculated) column if you have e.g. an SQL query:
WITH sales_data AS (
SELECT 54 AS value
UNION ALL
SELECT 23 AS value
UNION ALL
SELECT 40 AS value
UNION ALL
SELECT 14 AS value
UNION ALL
SELECT 28 AS value
)
SELECT value,
case
when value < 25
then 1
else 0
end as paymentsUnderBorder FROM sales_data;
Then you can sum up the occurences with an expression: =Sum(Fields!paymentsUnderBorder.Value)
Or you can distinctcount the values based on a condition at runtime in the report: =countdistinct(IIF(Fields!value.Value < 25, Fields!value.Value, Nothing)) This way you even can choose if you want to count the same offending value only one time or not > countdistinct vs count.
The result:
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 |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |
User | Count |
---|---|
6 | |
5 | |
4 | |
3 | |
2 |