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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bdazzler
New Member

Adding a relationship changes the field type

Hi all,

 

Powerbi noob here.

 

I have a table (from excel data) called "query_data" and I've created a second table called "summarisedTable".

When they have no relationship between them, they look like this:

 

Power BI Desktop1.png

(note the symbol next to the userCount field, which I assume means that this is a numeric field)

 

However, when I define a relationship between them, the userCount field magically becomes non-numeric:

Power BI Desktop2.png

... which means that I can't use that field in the sankey visualisation that I'm trying to create.

 

Why isn't the field numeric anymore after I've created the relationship?

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @bdazzler,

Maybe the data type have been changed automatically. Please set the userCount as number type(highlighted in yellow background) and set it summarized by count/sum(box in blue line) as before. So you can use it as before.

1.PNG

Another way, please right click->Query Editor, and check if there is the changed type step in Query Editor, please remove it and click "Apply&Close", check it the data type is fine.

2.PNG

Please respond me if you have any other issue.

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @bdazzler,

Maybe the data type have been changed automatically. Please set the userCount as number type(highlighted in yellow background) and set it summarized by count/sum(box in blue line) as before. So you can use it as before.

1.PNG

Another way, please right click->Query Editor, and check if there is the changed type step in Query Editor, please remove it and click "Apply&Close", check it the data type is fine.

2.PNG

Please respond me if you have any other issue.

Best Regards,
Angelia

Thanks Angelia - clicking on the column and changing the "Default Summarization" did the trick!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.