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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Heinrich
Post Partisan
Post Partisan

Slicer for text

Hello
I have a table that has following Data

Column A = Company

Column B = Old Version or New Version

Column B is Text

 

This table is displayed in Power BI Desktop

 

I would like to do a slicer which gives me the range. 

i.e. which company has more than 500 installed versions of Old Version 

or 

i.e. which company has more than 500 installed versions ob both versions.

 

Thank you

 

Heinrich

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Heinrich ,

 

Try the following table expression:

vtianyichmsft_0-1710834310295.png

 

Table 2 = ADDCOLUMNS('Table',"Old Version",CALCULATE(COUNTAX('Table','Table'[UPN]),FILTER(ALLEXCEPT('Table','Table'[Company]),[Version]="Old")),
"New Version",CALCULATE(COUNTAX('Table','Table'[UPN]),FILTER(ALLEXCEPT('Table','Table'[Company]),[Version]="New")))

 

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

9 REPLIES 9
Anonymous
Not applicable

Hi @Heinrich ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1710828419710.png

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

 

Hi  v-tianyich-msft
Thank you very much.

 

I had a missunderstanding.
I would immagine that I would do another table as written below.
Calclulating old and new version for every company and adding a slicer to filter

 

So if there are 

Heinrich_0-1710831813134.png

Then the new table would be created like

Heinrich_3-1710832050212.png

 

From there I could add 2 slicers one for with old and new version

and if needed total

 

Regards

Heinrich

 

Anonymous
Not applicable

Hi @Heinrich ,

 

Try the following table expression:

vtianyichmsft_0-1710834310295.png

 

Table 2 = ADDCOLUMNS('Table',"Old Version",CALCULATE(COUNTAX('Table','Table'[UPN]),FILTER(ALLEXCEPT('Table','Table'[Company]),[Version]="Old")),
"New Version",CALCULATE(COUNTAX('Table','Table'[UPN]),FILTER(ALLEXCEPT('Table','Table'[Company]),[Version]="New")))

 

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Hello
Fantastic work.
Would it be possible to have a slicer of total "Old Version" + "New Version".
Regards
Heinrich

Anonymous
Not applicable

Hi @Heinrich ,

 

Since measure can't be put into slicer, maybe you can try to use calculated columns, which will work.

 

Best regards,
Community Support Team_ Scott Chang

Thank you everything worked great 🙂

Heinrich
Post Partisan
Post Partisan

Hello

I believe this can only work if I make a new table with the total of all users per company

than I can add this to the slicer.
Regards
Heinrich

Heinrich
Post Partisan
Post Partisan

Hello
Thank you.

Table.png

I would like to have a slicer that gives me the total of all UPN's 


Therefore be able to select the range to show only companies that have 2 or more users
It would be great also to be able to select only new or only old version. But this can be done by having a second slicer.

 

I think I have to copy column A to a new table and count for every company old and new version 

and add it to the new table. So the table would look like

Column A = Company Name

Column B = Total New 

Column C = Total Old

 

How could I do that best?


Regards
Heinrich

Uzi2019
Super User
Super User

Hi @Heinrich 
Can you share sample input data and expected output/ screenshot for better understanding.. 

 

Thanks,

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.