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
Anonymous
Not applicable

Flitering

Hi 

 

Is it possible to write a measure that will return the a list of the highlighted item? 

 

Jlivenere-25_0-1619550215245.png

 

 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

It may not be easy to get the desired result using the average function, but other functions can be used to achieve the purpose, such as 

average =DIVIDE ( SUM ( 'table'[Score] ), 9 )

OR:  average =DIVIDE ( SUM ( 'table'[Score] ), COUNTROWS ( 'table' ) + 1 ).

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
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

7 REPLIES 7
v-angzheng-msft
Community Support
Community Support

 Hi, @Anonymous 

 

Try to create a calculate column like below:

Return =
IF (
    'Table'[name]
        IN {
        { "Sewing1" },
        { "Sewing3" },
        { "Receiving" },
        { "Quilting" },
        { "Matt Build" }
    },
    'Table'[name],
    BLANK ()
)

Note that to replace the text above with your actual text

I created a simple sample to illustrate this.

Sample:

v-angzheng-msft_0-1619756056397.jpeg

Use the slicer to filter out null values.

Result:

v-angzheng-msft_1-1619756056398.jpeg

v-angzheng-msft_2-1619756056399.jpeg

Please refer to the attachment below for details

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I want to know if its possible to overwrite the denominator when using average in Power BI. what I mean is in the table listed below I want the average of the 8 process but I want to divide by 9 instead of 8. is that possible

 

Jlivenere-25_0-1620225475808.png

 

Hi, @Anonymous 

 

It may not be easy to get the desired result using the average function, but other functions can be used to achieve the purpose, such as 

average =DIVIDE ( SUM ( 'table'[Score] ), 9 )

OR:  average =DIVIDE ( SUM ( 'table'[Score] ), COUNTROWS ( 'table' ) + 1 ).

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

HI 

 

I tried both and they didnt work.

 

thanks 

John

amitchandak
Super User
Super User

@Anonymous , You can create a measure like

Countrows(filter(Table, Table[Name] in {"Process Audit Sweing 2", "Process Audit Loading & Swing" , "rocess Audit Foundation", "rocess Audit Unit Building"))

 

You can plot this with name in visual, if needed

Anonymous
Not applicable

This is what I got, I wanted to have seleted items in list, if I were to put them in a table.

 

 

Jlivenere-25_0-1619613896376.png

 

Anonymous
Not applicable

I got this 

 

Jlivenere-25_0-1619613504448.png

 

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.