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
Heinrich
Post Patron
Post Patron

Measure to show values of a Column in a visual

Hello

I am looking to build a measure that shows me following criteria.

 

Filter of column "Escalated" for term "False" and return the values of column "Ticket Number".

This should be shown in a table visual.

 

How can I do that.

 

Thank you

Heinrich

 

 

5 REPLIES 5
Heinrich
Post Patron
Post Patron

Hello v-stephen-msft

Thank you for your answer.

 

But I need it in a Script because I want to change it dynamically.

i.E. I would use the space for different usecase in conjunction with buttons.

 

That means 

- Press Button 1 and show x,y,z

- Press Button 2 and show a,b,c

 

Is this possible

 

Heinrich

 

 

Heinrich
Post Patron
Post Patron

Hello Stephen
Thank you.

I need it for a Measure because I want to combine it with other functionalities.

How can I show multiple columns of a same table with a filter. Just the same as you showed previously but with addional columns.

 

Regards

 

Heinrich

v-stephen-msft
Community Support
Community Support

Hi @Heinrich ,

 

Please try

Measure1 =
CALCULATE (
    MAX ( 'TABLE'[Ticket Number] ),
    FILTER ( ALLSELECTED ( 'TABLE' ), [Escalated] = "False" )
)
Measure2 =
CALCULATE (
    MAX ( 'TABLE'[Ticket Number] ),
    FILTER ( 'TABLE' , [Escalated] = "False" )
)

You can also replace the MAX function with the SUM function for addition.

If you still have doubts, please provide some sample data and the expected results. Remember to protect your privacy.

   

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

Hello Stephen

Thank you it did work.
How can I show mutliple columns. 

i.E. not only Ticket Number but also Country Code
Have a great day
Heinrich

Hi @Heinrich ,

 

Sounds like you want a visual-level filter for filtering multi columns at the same time. If you want to satisfy multiple columns, you don't need to create a measure.

Here I made a simple sample for your reference.

vstephenmsft_0-1675070671173.png

You want to filter out rows with Escalated column False in a table visual containing Country Code and Ticket Number.

Plase drag the Escalated column into the filters and set up as follows.

vstephenmsft_1-1675070879039.png

   

                                                                                                                                                         

Best Regards,

Stephen 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.