Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I create all my report, dax, graphs, etc in PwerBI Desktop and everything is good, I publish to PwerBI Service and one of my Card give me a bad result. Everything else is OK, I have other CARD and give me the correct result but one is not. Is that possible?
This is the measure formula for this card:
CountTodayComplaint = IF(ISBLANK(CALCULATE(COUNTROWS(vw_pwrbi_quejas),vw_pwrbi_quejas[PubDate]=TODAY())),0,CALCULATE(COUNTROWS(vw_pwrbi_quejas),vw_pwrbi_quejas[PubDate]=TODAY()))
I use the same for other card changing the table and the field.
Quick question, you mentioned your other card gave your the correct result? is that card also using the same measure "CountTodayComplaint"?
I believe today() function is returing the different date when you publish it online, I'm suspicious you need to check locale settings. To test, put Today() value in the desktop and compare it with powerbi service to see if you are getting the same value for Today()
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks for answer, i found the problem, is the PowerBI Service is in UTC Time ZONE -4hours am from Puerto Rico is GMT.
I found solutions but all using import , am using Direct Query, if someone found a solution for this using Direct Query, please let me know.
Thanks.
Hi @sixtoquiles,
Which solution did you find in Import? Would you please share it ? We might be able to find the corresponding workaround in DirectQuery mode.
By the way, how about you create a calculated column in Query Editor to return the current date time in UTC format ( DateTimeZone.FixedUtcNow ). Then replace the Today() in your original DAX.
Best Regards,
Qiuyun Yu
User | Count |
---|---|
127 | |
108 | |
99 | |
63 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |