Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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



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 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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.