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

Make Data more Annonymous by parameter or filters

Hi all,

 

I have a dataset with a customertable. It contains something like 60 names. I need to make something (slicer, parameter, ...) that when clicked on a customer-name, changes all other names into 1,2,3 or something like that. So for example if you click on Customername: "Bob" the list should be:

 

Original column CustomerName               |          New Column
An                                                              |          Customer1

Thomas                                                      |          Customer2

Bob                                                            |          Bob

Frank                                                          |          Customer4

...

 

I Already tried query parameters, but as i understand this only changes the dataset and is not dynamic. As the users of my report only will acces with the PBI service this is not an option. I tried What-if parameter, but this doesn't work in a calculated column. I've got the right dax statement with the what-if parameter in a measure to achieve what i need, but now i can't display the customer-names on an axis.

 

Anyone that can help?

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

@jvangrunderbeec ,

 

Generally, you can create an index column and then create a measure like pattern below and check if it can meet your requirement:

New Column =
IF (
    MAX ( Table1[Original column CustomerName] )
        = SELECTEDVALUE ( Table1[Original column CustomerName] ),
    SELECTEDVALUE ( Table1[Original column CustomerName] ),
    CONCATENATE ( "Customer", MAX ( Table1[Index] ) )
)

Community Support Team _ Jimmy Tao

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

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@jvangrunderbeec ,

 

Generally, you can create an index column and then create a measure like pattern below and check if it can meet your requirement:

New Column =
IF (
    MAX ( Table1[Original column CustomerName] )
        = SELECTEDVALUE ( Table1[Original column CustomerName] ),
    SELECTEDVALUE ( Table1[Original column CustomerName] ),
    CONCATENATE ( "Customer", MAX ( Table1[Index] ) )
)

Community Support Team _ Jimmy Tao

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

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.