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,
could anyone help me here please? I've spent hours on a (I think) simple logic query, but I'm not able to get the right results:(((
I need to calculate number of invoices (lines), that
1. have a number > 0 in column A
2. AT THE SAME TIME have number 0, if in column B there is EDIAUTO
Solved! Go to Solution.
Hello @KatkaS
I believe this will give you what you are looking for.
Measure = CALCULATE( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[PHWSID] = "EDIAUTO" || 'Table'[APPORD] > 0 ) )
This will count every row in the table where
[PHWSID] = "EDIAUTO"
or
[APPORD] > 0
Hello @KatkaS
I believe this will give you what you are looking for.
Measure = CALCULATE( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[PHWSID] = "EDIAUTO" || 'Table'[APPORD] > 0 ) )
This will count every row in the table where
[PHWSID] = "EDIAUTO"
or
[APPORD] > 0
Ohmy, thank you so much for such a quick reply!!! You saved my sanity!!!!!
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 |
---|---|
58 | |
55 | |
54 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
40 |