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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
abhishek_2593
Helper II
Helper II

Need help in displaying Average value/level in the card

Hi All,  

 

I have a table which is calculating the disctinct counts under each levels as below, i want to display in a card the average of these levels' name.

i am finding it difficult to calculate as it is a string.

 

could somone please suggest an alternate way?

Thanks in advance 

 

RefereesTotal referees
Developer220
Level 05
Level 124
Level 216
Level 3320
Level 4400
Level 5900
Level 61200
Level 72880
Total5965
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @abhishek_2593 ,
Depending on the information you have provided, you can follow these steps below:

1.Add an index column.

vyifanwmsft_0-1709089403451.png

2.Add new measure.

Weighted Average Level = 
VAR _1 =
    CALCULATE ( SUM ( 'Table'[Index] ), FILTER ( 'Table', 'Table'[Index] >= 0 ) )
        / CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[Index] >= 0 ) )
RETURN
    "Level " & _1

Final output:

vyifanwmsft_1-1709089470601.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Based on the table that you have shared, show the expected result.  Also, share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @abhishek_2593 ,
Depending on the information you have provided, you can follow these steps below:

1.Add an index column.

vyifanwmsft_0-1709089403451.png

2.Add new measure.

Weighted Average Level = 
VAR _1 =
    CALCULATE ( SUM ( 'Table'[Index] ), FILTER ( 'Table', 'Table'[Index] >= 0 ) )
        / CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[Index] >= 0 ) )
RETURN
    "Level " & _1

Final output:

vyifanwmsft_1-1709089470601.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.