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

Second Row - Help!!

Hello! I have a table that I need to add a second calculated row to.

 

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

HI @Anonymous,

 

Actually, you can't direct modify data in original tables in data model.

 

In my opinion, I'd like to suggest you to use union function to create new table with original table and new data.

Table =
UNION (
TableA,
DATATABLE ( "Field1", INTEGER, "Field2", STRING, { { 1, "avc" }, { 2, "tet" } } )
)

 

Notice: two parameter tables should has same table structure.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

Actually, you can't direct modify data in original tables in data model.

 

In my opinion, I'd like to suggest you to use union function to create new table with original table and new data.

Table =
UNION (
TableA,
DATATABLE ( "Field1", INTEGER, "Field2", STRING, { { 1, "avc" }, { 2, "tet" } } )
)

 

Notice: two parameter tables should has same table structure.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
AnkitBI
Solution Sage
Solution Sage

As your Reserve Category has different values and if requirement is to have different calculations values for different Reserve Category values. You will either need Nested IF statements or Switch statement.

 

Lot of reference material available on both online.

 

Regards
AJ
Do Like Post if response seems good and Worth liking.
Do Mark as Solution if response resolved your Issue.

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.