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
praveenlc
Helper I
Helper I

cell level calculations different data type custom table tile & its contents

Hello Power BI team and experts,

Power BI desktop or Power BI report builder

is it possible to create a table visual tile which contacins each cell level calcualtions and with different data types like number values and percent of totals. Also if it is possible I would appreciate if you can share some light on the ideal data preparation to hande shuch requests

 

Thanks!

example:1

 

Item NameValue%
Offered calls1356100
Answered128294.5
Abandoned292.1
Avg Abandoned time34.2-

 

Example : 2

 

 
 

 

 

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

Hi @praveenlc 

From your example1, the value column should be Number and % column should be number percent.

Every column has only one type , so we can't make the values in the same column have different types.

I build a sample table to have a test.

1.png

Build a calculated column(Value %) like example1.

Value % =
VAR _Offered_calls =
    CALCULATE (
        SUM ( 'Table'[Value1] ),
        FILTER ( 'Table', 'Table'[Item] = "Offered calls" )
    )
VAR _Abandoned =
    CALCULATE ( SUM ( 'Table'[Value1] ), 'Table'[Item] = "Abandoned" )
VAR _Answer =
    CALCULATE ( SUM ( 'Table'[Value1] ), 'Table'[Item] = "Answer" )
VAR _percent =
    SWITCH (
        'Table'[Item],
        "Abandoned",
            FORMAT ( _Abandoned / _Offered_calls * 100, 0 ),
        "Answer",
            FORMAT ( _Answer / _Offered_calls * 100, 0 ),
        "Offered calls",
            FORMAT ( _Offered_calls / _Offered_calls * 100, 0 ),
        "-"
    )
RETURN
    'Table'[Value1] & " " & _percent

Result:

2.png

Due to one column will have only one type, the Value% column will change the type as Text.

3.png

You can download the pbix file from this link: cell level calculations different data type custom table tile & its contents

 

Best Regards,

Rico Zhou

 

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

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @praveenlc 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

v-rzhou-msft
Community Support
Community Support

Hi @praveenlc 

From your example1, the value column should be Number and % column should be number percent.

Every column has only one type , so we can't make the values in the same column have different types.

I build a sample table to have a test.

1.png

Build a calculated column(Value %) like example1.

Value % =
VAR _Offered_calls =
    CALCULATE (
        SUM ( 'Table'[Value1] ),
        FILTER ( 'Table', 'Table'[Item] = "Offered calls" )
    )
VAR _Abandoned =
    CALCULATE ( SUM ( 'Table'[Value1] ), 'Table'[Item] = "Abandoned" )
VAR _Answer =
    CALCULATE ( SUM ( 'Table'[Value1] ), 'Table'[Item] = "Answer" )
VAR _percent =
    SWITCH (
        'Table'[Item],
        "Abandoned",
            FORMAT ( _Abandoned / _Offered_calls * 100, 0 ),
        "Answer",
            FORMAT ( _Answer / _Offered_calls * 100, 0 ),
        "Offered calls",
            FORMAT ( _Offered_calls / _Offered_calls * 100, 0 ),
        "-"
    )
RETURN
    'Table'[Value1] & " " & _percent

Result:

2.png

Due to one column will have only one type, the Value% column will change the type as Text.

3.png

You can download the pbix file from this link: cell level calculations different data type custom table tile & its contents

 

Best Regards,

Rico Zhou

 

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

pranit828
Community Champion
Community Champion

Hi @praveenlc 

Can you please provide more info with input and required output in table format for the community so that you ask can be better understood and resolved quickly.

 

For % = [column1]/CALCULATE(sum([Column1]),ALL('Table'[Column1]))





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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.