cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sixtoquiles
Helper II
Helper II

Difference results in PwerBI Desktop and Servcie

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.

3 REPLIES 3
parry2k
Super User
Super User

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()






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 Man Sad 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

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!