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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.