cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
lululady Frequent Visitor
Frequent Visitor

Second Row - Help!!

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Second Row - Help!!

HI @lululady,

 

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 Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
2 REPLIES 2
AnkitBI Regular Visitor
Regular Visitor

Re: Second Row - Help!!

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.

Community Support Team
Community Support Team

Re: Second Row - Help!!

HI @lululady,

 

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 Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 178 members 2,507 guests
Please welcome our newest community members: