Forum Discussion
Data format is changing between Power Query and data model
- 7 years ago
Hi mjbernier ,
Sorry for the confusion, I read it incorrectly your question.
Create the following measure:
Measure = AVERAGEX ( FILTER ( ADDCOLUMNS ( GROUPBY ( ALLSELECTED ( Table1 ); Table1[Question]; Table1[Answer] ); "Number_Answer"; IFERROR ( Table1[Answer] + 0; 0 ) ); [Number_Answer] <> 0 ); [Number_Answer] )Should give expected result.
Once again sorry for the incorrect information previouly.
Regards,
MFelix
Hi mjbernier ,
The ABC 123 on the top of the column symbols that you have text and numbers on a column, by default is what is uploaded in some columns. When you go to the aplly this it's read as text and not as numbers.
Go to the query editor click on the ABC123 and select the number format for the column with the numerics, then close and apply and your data will be as number.
Regards,
MFelix
- MFelix7 years agoSuper User
Hi mjbernier ,
Sorry for the confusion, I read it incorrectly your question.
Create the following measure:
Measure = AVERAGEX ( FILTER ( ADDCOLUMNS ( GROUPBY ( ALLSELECTED ( Table1 ); Table1[Question]; Table1[Answer] ); "Number_Answer"; IFERROR ( Table1[Answer] + 0; 0 ) ); [Number_Answer] <> 0 ); [Number_Answer] )Should give expected result.
Once again sorry for the incorrect information previouly.
Regards,
MFelix