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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Bring in rows from one table into a new table

I need help creating a new table based off data from my original.  Here is the current state and desired tables.  Thanks in advance!

powerbi help.PNG

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , You have two unpivot last two columns you will get two new columns. ONe of them will have these quarter headers. In This new  columns replace "Quarter Account" with ""

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

How would it work in DAX once I click New Table.  The "Quarter Account New" and "Quarter Account Drop" are calculated columns, not in the imported data.

@Anonymous , That is power Query.

 

In DAX

union(

summarize(Table, Table[Account], Table[Quater Account New], "New/Drop", "New") ,

summarize(Table, Table[Account], Table[Quater Account Dropped], "New/Drop", "Dropped")

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you!! Is there a way to add a filter to restrict certain quarters from coming through?

Hi @Anonymous ,

 

Of course yes, when you get the result from dax expression @amitchandak  provided. you can use filter() to filter some rows you do not want.

 

new table =
VAR _union =
    UNION(
        SUMMARIZE(
            Table,
            Table[Account],
            Table[Quater Account New],
            "New/Drop", "New"
        ),
        SUMMARIZE(
            Table,
            Table[Account],
            Table[Quater Account Dropped],
            "New/Drop", "Dropped"
        )
    )
RETURN
    FILTER( _union, [New/Drop] <> "20Q3" )

 


Best Regards

Community Support Team _ chenwu zhu

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors