Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
Solved! Go to Solution.
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 . 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 )
@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 )
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)
Thank you for the solution, appreciated.
Regards,
Chris
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
60 | |
58 | |
56 | |
38 | |
28 |
User | Count |
---|---|
82 | |
61 | |
45 | |
41 | |
39 |