Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have this code that adds a row "Others" to 1 column of a table:
Solved! Go to Solution.
Hi @rpinxt ,
UNION function only support us to combine tables with same number of columns. According to your screenshot. "PF" table has two columns. {"Others"} only has one column. Now you want to add Other in two columns, so I suggest you to create a table with two columns.
PF+Oth =
FILTER (
UNION (
ALLNOBLANKROW ( PF ),
ROW ( "Prod.Fam.", "Others", "Prod.Fam.Lv2", "Others" )
),
AND ( NOT ISBLANK ( PF[Prod.Fam.] ), NOT ISBLANK ( PF[Prod.Fam.Lv2] ) )
)
Result is as below.
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.
@amitchandak
Not sure how I can make it clearer but this is the table:
Now I have this :
This had a line with Others. But only in column Prod.Fam.
What I would need is also the column Prod.Fam.Lv2 with a line Others in this table.
Hi @rpinxt ,
UNION function only support us to combine tables with same number of columns. According to your screenshot. "PF" table has two columns. {"Others"} only has one column. Now you want to add Other in two columns, so I suggest you to create a table with two columns.
PF+Oth =
FILTER (
UNION (
ALLNOBLANKROW ( PF ),
ROW ( "Prod.Fam.", "Others", "Prod.Fam.Lv2", "Others" )
),
AND ( NOT ISBLANK ( PF[Prod.Fam.] ), NOT ISBLANK ( PF[Prod.Fam.Lv2] ) )
)
Result is as below.
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.
User | Count |
---|---|
98 | |
75 | |
69 | |
50 | |
27 |