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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
cuibolun
Frequent Visitor

Data shows differently after publishing to service

Hi, 

When I publish a report and open it to pbi service, it shows exactly the same result, however, if I refresh the page or after close-reopen the browser, it shows negative value. Any reason why?
This is the orginal view:

cuibolun_0-1663326831534.png

 

 

After refreshed the browser: 

cuibolun_1-1663326831552.png

 

 

Thank you!

1 ACCEPTED SOLUTION

Problem solved after I move the calculation from DAX to Power Query. (so... sort of fixed?)

View solution in original post

9 REPLIES 9
Greg_Deckler
Super User
Super User

@cuibolun Try resetting the report to default maybe? It's an option in the report ribbon in the Service.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler It happends after I refresh the dataset in service as well. It doesn't happen if I refresh using desktop. @

@cuibolun You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  I think I found the root of the issue, these number are from calculated column, when I refresh the dataset in server (datasource is from Azure SQL), some of the calculated fields shows incorrect value (they should be positive). For example, 

cuibolun_0-1663333083778.png

the right column is orginal data, the left column is calcuated column. The formula that I use in this calculated column is :

Duration (Hrs) =
DIVIDE(
DATEDIFF(
    Starttime,
    Endtime,
    MINUTE),60)
 
Any idea?
 
Thank you!

Problem solved after I move the calculation from DAX to Power Query. (so... sort of fixed?)

@cuibolun Would have to see your DAX



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I have two datetime attributes (start and end), then I used these two fields to calcuate the duration in hours (trying to avoide rounding so use minutes and divide by 60):

Duration (Hrs) =
DIVIDE(
DATEDIFF(
    Starttime,
    Endtime,
    MINUTE),60)
 
cuibolun_0-1663338579530.png

So the left is the calcualted value and right is the original duration out of the data source.

 

@cuibolun You can simply subtract them. No need for DATEDIFF. Date and Date/time values are simply decimal numbers where the integer portion is the number of days since 12/30/1899 and the decimal portion is the fraction of a day 24/60/60.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

 

Tried but not working. 😞

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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