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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.