Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
hi,
I have a xml based dataaset that i want to use for mobile report. I could import the xml dataset in Mobile report Publisher but it doesn't show the correct data type. In xsd i have defined the field 'Salary' as Integer but in Mobile report publisher it is imported as Filter Field. Is it possible to change the data type direct in Mobile Report Publisher?
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="data-set">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="record">
<xs:complexType>
<xs:sequence>
<xs:element name="Workgroup" type="xs:string" />
<xs:element name="Salary" type="xs:integer" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Thanks
Neena
Hi @Neena,
It's not supported to change data type for data columns in SQL mobile report publisher.
Based on my test, the dataset created from query below:
<Query> <XmlData> <?xml version="1.0" encoding="utf-16"?> <xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="data-set"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="record"> <xs:complexType> <xs:sequence> <xs:element name="Workgroup" type="xs:string" /> <xs:element name="Salary" type="xs:integer" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </XmlData> </Query>
I didn't see the field 'Salary' as Integer. Did you use above query in shared dataset actually? What do you mean about "In xsd i have defined the field 'Salary' as Integer but in Mobile report publisher it is imported as Filter Field. "?
Best Regards,
Qiuyun Yu
Hi Qiuyun Yu,
Thanks for our response.
I have used the following xml file as a shared dataset.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <data-set> <record> <Workgroup>A</Workgroup> <Salary>1000</Salary> </record> <record> <Workgroup>B</Workgroup> <Salary>2000</Salary> </record> <record> <Workgroup>C</Workgroup> <Salary>3000</Salary> </record> <record> <Workgroup>D</Workgroup> <Salary>4000</Salary> </record> <record> <Workgroup>E</Workgroup> <Salary>5000</Salary> </record> <record> <Workgroup>F</Workgroup> <Salary>6000</Salary> </record> <record> <Workgroup>G</Workgroup> <Salary>7000</Salary> </record> </data-set>
I have imported the dataset into Mobile report publisher. As you see Salary can’t be used for calculation.
I hope this makes sense.
Thanks for your support.
Best Regards,
Neena
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |
User | Count |
---|---|
6 | |
6 | |
4 | |
3 | |
2 |