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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
itanic
Frequent Visitor

True False value turning into 0 -1 on Gateway Refresh

Have developed datasets that have a calendar that uses the M expression for Date.IsInPreviousNMonths that returns a "TRUE" or "FALSE" value.  Everything has been working just fine - up until we installed the gateway and scheduled a refresh of the data.  With the auto refresh of data, many of the report tabs showed no data.  Turns out that the "TRUE/FALSE" values (used as filters) turned into "0" or -"1".  Don't know how to fix this so the refresh works as expected. 

 

Anyone else seeing this?

3 REPLIES 3
Anonymous
Not applicable

Hi @itanic,

 

How did you set up the calendar table, can you share more detail information?

 

In addition, you can also refer to below article to provide more contents to help troubleshooting.

Troubleshooting the on-premises data gateway

 

Regards,

Xiaoxin Sheng

The calender is created via query and the commend for the field at issue is created using the following

 

= Table.AddColumn(#"Added Custom13", "Last 12 Months", each Date.IsInPreviousNMonths([Date], 12))

 

Hope this helps

Anonymous
Not applicable

Hi @itanic,

 

I copy your formula and test on my side, I can reproduce your issue.

 

I found if you set custom column with text format, the issue will appeared; but if you convert it to bool(true/false) type, it also works on service side.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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