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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
LittlePero
New Member

Need help with returning values

Hi guys,

 

this could be rather simple, but for the love of God I can't figure it out.

My view is returning through CASE 0 or 1 values and in the BI desktop I'm getting -1 values in my 3 columns:

 

2019-12-29 11_46_36-littlepero@ad - AnyDesk.png

 

also:

 

2019-12-29 11_51_19-littlepero@ad - AnyDesk.png

 

and:

 

2019-12-29 11_51_34-littlepero@ad - AnyDesk.png

 

Columns were returning good values till a few days ago when I had to do some tweakings around and somehow messed them up.

Any help is much appreciated.

 

cheers

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

hi @LittlePero 

what values do you see in Power Query Editor mode and in Data window in report mode?

423132.png

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

6 REPLIES 6
az38
Community Champion
Community Champion

hi @LittlePero 

what values do you see in Power Query Editor mode and in Data window in report mode?

423132.png

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thx for the fast reply, I can't see it trough BI:

2019-12-29 12_17_58-littlepero@ad - AnyDesk.png

 

but can trough VS or Tabular Editor:

 

2019-12-29 12_17_02-littlepero@ad - AnyDesk.png

 

Values are 0 or -1 instead of 1.

 

cheers

 

 

az38
Community Champion
Community Champion

@LittlePero 

please, share your statement with CASE that defines the value. without it, it's almost impossible to help 

 

do not hesitate to give a kudo to useful posts and mark solutions as solution

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Sure, here it is:

2019-12-29 12_30_19-littlepero@ad - AnyDesk.png

 

As said before, the function worked good, it was returning values as it should, I don't think it's the cause of the problem. Could it be some miss-match of the date formats fields in "Date" view I was changing few days before? 

az38
Community Champion
Community Champion

well, @LittlePero 

if you could delete sensitive data from your report and share pbix-file it would be helpful for further troubleshooting

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Fun stuff, I changed Data Format to General, again (tried this before) and Data Type to Whole Number (also tried this before), refreshed data from DB and it worked:

 

2019-12-29 13_20_54-littlepero@ad - AnyDesk.png

 

Thx for help @az38 !

 

cheers

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.