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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Custom Column Issue

Hi there,

 

I am trying to esentially create a custom column to create specific Studios off of a Brand field in my underlying excel data.

What is the best way to add my custom studio listing? I've attached an example of what this looks like in Excel but I would love to have this created in Power BI.

 

Esentially, I would add the custom Studio column as a slicer in my dashboard.

 

Thanks!

 

 

SharedScreenshot Studio.jpgSharedScreenshot Studio 2.jpg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , one way, is to load it from excel and merge the data

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Enter Data and append data

 

or write a formula using Switch

refer video: Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

 

Switch(true(),

[brand] in {"DTR CAR", "DTR Frozen"}, "Disney",

// add other

//else

)

View solution in original post

2 REPLIES 2
v-yetao1-msft
Community Support
Community Support

Hi @Anonymous 

I want to know how do you import the data ? If you import data from excel file ,you can add the Studio column in your excel then import to desktop .Then choose the Studio field as a slicer to filter data .

If you import the data by Enter Date in desktop , you can directly enter the value in the Studio column or modify it in the source settings in Query Editor . Instead of adding Custom Column . Then choose the Studio field as a slicer to filter data .

So what kind of effect do you want to achieve through Custom Column, can you describe it clearly?

Ailsa-msft_0-1619692061972.png

If you want to know more info about the function of Custom Column , you can refer to this link :

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-add-custom-column

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , one way, is to load it from excel and merge the data

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Enter Data and append data

 

or write a formula using Switch

refer video: Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

 

Switch(true(),

[brand] in {"DTR CAR", "DTR Frozen"}, "Disney",

// add other

//else

)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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