Forum Discussion
Power Bi Service Measures
- 9 years ago
I was formatting a column in Direct Query as a decimal number. When I used this column in a slicer, it would cause my measures to stop working in the Power BI Service. Once I changed the column to type 'any', the measures worked. So yes, the problem was solved by changing the column type to 'any' from decimal number.
I just test with latest PBI Desktop and get data from SQL Server 2016 in DirectQuery mode. The measure works well after I publish to PBI Service. I also have put text slicer in my report. It seems not to be related to SQL but related to gateway. Could you please check the on premise gateway status is good as below?
BTW, I’ve saw similar problem in other posts, and the problem is resolved by manually cleaning the registry of all PBI references after an uninstall, and then reinstalled the gateway. You can also have a try.
Best Regards,
Herbert
I was formatting a column in Direct Query as a decimal number. When I used this column in a slicer, it would cause my measures to stop working in the Power BI Service. Once I changed the column to type 'any', the measures worked. So yes, the problem was solved by changing the column type to 'any' from decimal number.
- v-haibl-msft9 years agoMicrosoft Employee
It is good news that you’ve got it resolved. But it’s really strange, I also tried to add a decimal number column in my database and used it in a slicer. My measure is still working in the Power BI Service.
Best Regards,
Herbert
- JDSX9 years agoFrequent Visitor
Hi,
My problem is somewhat similar but not enough that I could solve it same way. I added a measure which works in a KPI on desktop but not in cloud because it doesn't sync to the dataset. Measure is defined as:
Active Companies = COUNTAX('Company', 'Company'[is_active] = TRUE())
The error text is:
Fields that need to be fixedSomething's wrong with one or more fields: (Company) Active Companies
Please try again later or contact support. If you contact support, please provide these details.Activity IDe83e5d04-9dfc-5bc0-52be-f69d33fe30daTimeSat Dec 17 2016 21:09:33 GMT-0500 (Eastern Standard Time)Correlation ID94d5f48a-4013-994e-e78c-61e1d7cbcd41Version13.0.1700.811