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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Mederic
Post Patron
Post Patron

Generating errors in #table code

Hello, 

For my personal knowledge, I'd like to know if it's possible to add Errors in the code below as shown in the illustration on the right of the image?

Thanks in advance

Best regards

 

 

let
    T1 = #table( type table[C1=Text.Type, C2=Number.Type, C3=Number.Type, C4=Number.Type], { {"A",22, 36, 45}, {"B", 42, 54, 63}, {"C", 67, 73, 86}, {"D", 22, 76, 84}} )
in
    T1

 

#table with Error.jpg

1 ACCEPTED SOLUTION
ronrsnfld
Super User
Super User

Just replace any of the entries with an error record. You can add messages to the error which will show up if you select the cell. eg:

let
    T1 = #table( type table[C1=Text.Type, C2=Number.Type, C3=Number.Type, C4=Number.Type], { 
        {"A",22, 36, 45}, 
        {"B", 42, 54, 63}, 
        {"C", 67, 73, 86}, 
        {"D", 22, error [Reason="my error", Message="I want this", Detail="showing the error here"], 84}} )
in
    T1

View solution in original post

2 REPLIES 2
Mederic
Post Patron
Post Patron

Hello @ronrsnfld ,

Great, thank you very much,
Thanks also for nice layout/formating the code
It's nicer and easier to read

Have a nice day

ronrsnfld
Super User
Super User

Just replace any of the entries with an error record. You can add messages to the error which will show up if you select the cell. eg:

let
    T1 = #table( type table[C1=Text.Type, C2=Number.Type, C3=Number.Type, C4=Number.Type], { 
        {"A",22, 36, 45}, 
        {"B", 42, 54, 63}, 
        {"C", 67, 73, 86}, 
        {"D", 22, error [Reason="my error", Message="I want this", Detail="showing the error here"], 84}} )
in
    T1

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.