Forum Discussion
DAX Formula for subtracting
Can you convert the SLA Hours to values on import in the Query editor?
I cant do anything under the Query Editor as its using SQL Direct access (i think its called)
- Still learning PowerBi so if there is a way to do it, im willing to give it a shot or do some reading on how its done
- wynhopkins9 years agoMost Valuable Professional
Are you editing things in Power BI Desktop?
https://www.simple-talk.com/sql/bi/direct-query-power-bi/
- Wise19 years agoHelper I
Yep, using powerBi Desktop and using Direct Query
- parry2k9 years agoSuper User
What is the data type for the field in SQL? What I can see from your screen shot, it is treating the field as string than number field. Can you click on the table as per screen shot 1 and then select modelling table, select field and change it to number (not sure if direct query allows that), if not then probably you need to create a column using dax and convert it to number:
Add new column called, for example new column is called myValue
myValue = VALUE(Table1[TextField])
I didn't tested above formula but we can always fix it in case there is an issue.
Thanks,