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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

SUMX DAX measure value loads blank after refresh in Service **Urgent**

Hi,

 

I have a measure that loads perfectly in desktop. However, once I publish the report to service, after a refresh of the page; the values appear as blank. 

 

What is the measure: Calculate sum of 2 columns in a table after applying some filters. 

 

Open_WIP =
        var t_date = max(Cal[Date])
           return SUMX(FILTER(WIP_All,
                 WIP_All[WipDate]<=t_date &&
                 or(WIP_All[Winvdate] > t_date, ISBLANK(WIP_All[Winvdate])) &&
                 WIP_All[Billable]="TRUE" &&
                 WIP_All[WCodeSer]<>blank() &&
                 WIP_All[Windicator]<>"P"),
        WIP_All[Actual $]+WIP_All[Wexp])
 
Glossary:
Max(Cal[Date]) is today's date in Michigan. This value is calculated using the third option proposed on RADCAD - Solving DAX Time Zone Issue in Power BI since Michigan has different dates for DST.
 
'Open_WIP' DAX is segmented by aging buckets and is used for visualization. Respective Dax Measure:
 
OpenWIP group =
CALCULATE([Open_WIP],
                   FILTER(WIP_All,
                              COUNTROWS(FILTER(Aging_Groups,
                                     WIP_All[Days_between]>=Aging_Groups[Min] && WIP_All[Days_between]<=Aging_Groups[Max]))>0))
 
WIP[Days_between] is a count of days between the date of a row & Max(Cal[Date]) represented as whole number.
 
Aging_Group table:
 Capture.PNG
 
The measure & visuals works absolutely fine in desktop, but returns blank in service after a refresh. The first image below represents DAX measure values in desptop. Second image represents the blank values in service after refresh.
Matrix as a visual  that uses 'Open_WIP group' as values; on desktopMatrix as a visual that uses 'Open_WIP group' as values; on desktop
<Blank> values in Service after upload & refresh<Blank> values in Service after upload & refresh
More info on version of application/softwares used:
Latest Power bI desktop used - August 2021
Latest Power bI Enterprise Gateway - June 2021
 
Please can you advise why this is happening? 
 
Best Regards,
Pooja
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Greg_Deckler Thank you for the response. 

 

Yes, the data loads perfectly well in BI service. 

 

I may have identified the issue causing this trouble in Service.

 

This relates to the Filter WIP[Billable] = "TRUE"

I had transformed column 'Billable', having values 0, 1, representing 'No' & 'Yes' respectively, to Binary in Power Query. When loaded as a table in BI desktop; this column automatically changed the data type to 'Text' and thereby, BI service reads this as 0, -1 for 'FALSE', 'TRUE' respectively.

 

An issue that was raised in 2015 continues to persist in service as of 2021 - Community question raised in 2015 - True/False Filter is now 0/-1 ???

 

Applied fix- created a conditional column in query to calculate true/false text column again; Will share more info if this rectifies the issue

 

Data type inconsistency between power query & loaded table in desktopData type inconsistency between power query & loaded table in desktop

True/False changed to -1 & 0 in BI serviceTrue/False changed to -1 & 0 in BI service

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Anonymous First things first, try editing the report in the Service and make sure you still have data.



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...
Anonymous
Not applicable

@Greg_Deckler Thank you for the response. 

 

Yes, the data loads perfectly well in BI service. 

 

I may have identified the issue causing this trouble in Service.

 

This relates to the Filter WIP[Billable] = "TRUE"

I had transformed column 'Billable', having values 0, 1, representing 'No' & 'Yes' respectively, to Binary in Power Query. When loaded as a table in BI desktop; this column automatically changed the data type to 'Text' and thereby, BI service reads this as 0, -1 for 'FALSE', 'TRUE' respectively.

 

An issue that was raised in 2015 continues to persist in service as of 2021 - Community question raised in 2015 - True/False Filter is now 0/-1 ???

 

Applied fix- created a conditional column in query to calculate true/false text column again; Will share more info if this rectifies the issue

 

Data type inconsistency between power query & loaded table in desktopData type inconsistency between power query & loaded table in desktop

True/False changed to -1 & 0 in BI serviceTrue/False changed to -1 & 0 in BI service

Anonymous
Not applicable

The applied fix rectified the issue! 

 

However Power BI needs to be better at fixing bugs issues between the various platforms - Query editor -> table load in desktop -> data type chnage in service.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.