Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Guys,
Im wokring on a report where im showing all inoices that have a revenue equal to 0 for the last week. This give me a table with 66 rows of orders (can be the same order multiple times if multiple orderlins are equal to 0.
This report is automaticlally sent out to management weekly and managament wants to be able to see the amount of rows we are talking about in a card.
However if i add the card with a count of orders with revenue equal to 0 i get way more orders, around a thousand...
In this screenshot you can see that the amount of rows in the table can never be 985 (look at size of scrollbar). I exported the table and got 66 rows back.
How am i able to match the rowcount in the card with the rowcount of the table?
Hi @TijmenVlug ,
If you want to filter the data with revenue of 0 in the card visual object, then you need to drag the field into the visual object pane on the right hand side, like shown in the image below:
The final result is shown in the image below and more details can be found in the attachment.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try using the following Dax for the card, The mismatch between the row count in your card and the table in Power BI is likely caused by the aggregation behavior or data model relationships. Here's how you can troubleshoot and fix the issue:
Ensure the Measure Logic Matches the Table Filter Context:
Measure = COUNTROWS(VALUES(TableName[OrderID]))
Avoid Counting Unique Orders if Duplicate Lines Exist:
Measure = COUNTROWS(FILTER(TableName, TableName[Revenue] = 0))
Check Relationships in Your Data Model:
Export to Verify Data Consistency:
Force the Same Filters Using ALLSELECTED:
Measure = COUNTROWS(ALLSELECTED(TableName))
Check for Hidden Filters in the Card:
Card Calculation Debugging:
CALCULATETABLE( VALUES(TableName[OrderID]), TableName[Revenue] = 0 )
If the issue persists, share the DAX formula for your card and the data structure for further guidance.
User | Count |
---|---|
84 | |
73 | |
67 | |
42 | |
35 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |