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
Chitemerere
Responsive Resident
Responsive Resident

Generating new column based on another column values

I have the following from my Power BI data set:

 

Country

Annual Spend (USD)

Zimunda

0

Taguma

230000

Chireshe

200000

Tichafa

0

Machenga

0

Engen

180000

Takashinga

250000

Chamega

150000

 

I need to have a new table where the countries with 0 Annual Spend (USD) are removed, the following is the expected result:

 

Country

Annual Spend (USD)

Taguma

230000

Chireshe

200000

Engen

180000

Takashinga

250000

Chamega

150000

 

How can this be accomplished in Power BI Desktop?

 

Thanking you in advance.

 

Regards,

Chris

2 ACCEPTED SOLUTIONS
andre
Memorable Member
Memorable Member

click on Modeling->New Table then the DAX to create the new table is the following:

 

newTableName = filter(all(oldTableName), oldTableName[Annual Spend (USD)]>0)

 

 

View solution in original post

amitchandak
Super User
Super User

@Chitemerere . In visual level table you can have visual level filter <> 0

 

in Power Query you can filter <> 0 or copy table and filter <>0

 

in dax you can create a new table

https://docs.microsoft.com/en-us/dax/calculatetable-function-dax

cnew Table = alculatetable(Table, Table[Annual Spend (USD)] <>0 )

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Chitemerere . In visual level table you can have visual level filter <> 0

 

in Power Query you can filter <> 0 or copy table and filter <>0

 

in dax you can create a new table

https://docs.microsoft.com/en-us/dax/calculatetable-function-dax

cnew Table = alculatetable(Table, Table[Annual Spend (USD)] <>0 )

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
andre
Memorable Member
Memorable Member

click on Modeling->New Table then the DAX to create the new table is the following:

 

newTableName = filter(all(oldTableName), oldTableName[Annual Spend (USD)]>0)

 

 

Chitemerere
Responsive Resident
Responsive Resident

Thank you for the solution, appreciated.

 

Regards,

Chris

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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
Top Kudoed Authors