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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
DataAnalysis
Frequent Visitor

Unable to visualize due to data format after processing duplicate data

Hello, I am receiving a lot of help from PowerBI Community in Korea.
Thank you very much for your hard work.

I have one question. Can you help me?

 

Due to the difference in Data Format, the existing Visualization Graph does not work properly.

My current situation is as follows.
- In the same case, several WorkPlaces were separated by ,(Comma), so we separated them by using Split function.
- Actually hours were processed in duplicate, so I wanted to make the actual hours 0 for the other Row except for one. Therefore, the following functions were created in the MPC Actual Hours Column to avoid duplication.
- The data types for each column are as follows.
Case Number = Text
Actual Hours = Whole Number
WorkPlace = Whole Number

 

This is where the problem occurs.

1. When Actual Hours is Whole Number, an error occurs in WorkPlace Actual Hours.
"Expressions that yield variant data-type cannot be used to define calculated columns."

중복처리후 Data 계산 불가1.JPG

 

 

2. When I changed the data of Actual Hours to Text, the error disappears and the WorkPlace Actual Data is output. However, the Visualization graphs do not work as the existing Actual Hours type changes to Text.
(Error that Sum of Text Type cannot be visualized)

중복처리후 Data 계산 불가2.JPG

3. CaseNumber contains characters and cannot be converted to numbers.

 

**Requirements**
1. While WorkPlace Actual Hours is output, I want to maintain visualization using Actual Hours.
Can't WorkPlace Actual Hours be printed normally while maintaining the Whole Number Type of Actual Hours?

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @DataAnalysis ,

 

Keep the [Actual Hours] to be whole number.

The values on both sides of the equal sign need to be of the same type.

Since the [Actual Hours] is whole number, please modify = "0"(text) to = 0(whole number).

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @DataAnalysis ,

 

Keep the [Actual Hours] to be whole number.

The values on both sides of the equal sign need to be of the same type.

Since the [Actual Hours] is whole number, please modify = "0"(text) to = 0(whole number).

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@DataAnalysis , in the first formula remove double quote on 0

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.