The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
All, I am using countrows function to calculate count of rows where status field value is 'Late', see screenshot below.
Here is the measure formula I am using:
To dig deeper into this, I added a column called latecount with the formula: @GilbertQ
Ideally if the status value is late then it should log 1 in latecount field but its doing something else, that is where the discrepancy is coming up. When I do 'dont summarize' for latecount field then it gives me 1 for all late values. No other filters are in place.
Hi @Anonymous
Without having your actual data there is certainly something going on with the Status column causing this to not work as expected.
Hi @Anonymous
Can you try the following measure and see if this works?
If you can also make sure that there is no white space before or after the Status?
Total Receipts = CALCULATE(COUNTROWS('ReceiptData withPOLines'),'ReceiptData withPOLines'[Status]="Late")
@GilbertQ Thanks so much for your response. I tried the same but the count is still off, thoughts?
Hi @Anonymous
Can you confirm there are no other filters on your page?