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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Etwa
New Member

CASE Statement to DAX help

Need some help with building a case statement or something similar.Capture.PNG

My information brought back is telemetry based and need to adjust where a cloumn content name is "Excel" I need it to add a new coloumn and rename it to "Microsoft Excel" (just an example). The coloumn with the data is called "Application".

Something in the line of Where solution name is "excel" then "MS excel"

Any help will be useful, thanks

Code below

let
    Source = Sql.Database("xx.xxx.xx.xx\Telemetry", "TELEMETRY"),    dbo_Lookup_solutions = Source{[Schema="dbo",Item="Lookup_solutions"]}[Data]
in    dbo_Lookup_solutions

 

1 ACCEPTED SOLUTION

Hi @Etwa,

 

In the query mode, when you do a new step is like recording a macro everytime you update the refresh the DB, PB gets the data and runs one step after the other to have everything as you need to use in the visualizations, so it's and automation of the data treatement that is repeated over and over again at each refresh.

 

Regards.

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Etwa,

 

Do a right click over the column and select Replace values.

 

Regards,

 

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hello

 

Thanks for responding

 

doing that will help me for my current set but will I not have to do that if I refresh the DB again and new values get populated?

Hi @Etwa,

 

In the query mode, when you do a new step is like recording a macro everytime you update the refresh the DB, PB gets the data and runs one step after the other to have everything as you need to use in the visualizations, so it's and automation of the data treatement that is repeated over and over again at each refresh.

 

Regards.

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Perfect then, thanks mate

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.