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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
vjnvinod
Impactful Individual
Impactful Individual

Table issue

Dear all,

@amitchandak  @Anonymous 

I am using below Dax to create a new table

Rank = UNION(DISTINCT(FY20WTD_MTD_YTD[Rank Description]),DISTINCT('YTD FY21'[Rank Description]))
 
But this is returning me duplicate and blank values as welll, is there way i can fix this?
 
Capture.PNG
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@vjnvinod ,

Try

Distinct(Rank = UNION(DISTINCT(FY20WTD_MTD_YTD[Rank Description]),DISTINCT('YTD FY21'[Rank Description])))

 

or

 

distinct(Rank = UNION(all(FY20WTD_MTD_YTD[Rank Description]),all('YTD FY21'[Rank Description])))

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

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @vjnvinod 

You need to apply “distinct” function to the "Rank" table again.

Please create another calculated table based on the table 'Rank':

 

Rank2 = DISTINCT(FILTER('Rank','Rank'[Rank Description]<>""))

 

The result ( without any duplicate and blank values) will show as below:

 

49.png

 

Please check my sample file for more details.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@vjnvinod ,

Try

Distinct(Rank = UNION(DISTINCT(FY20WTD_MTD_YTD[Rank Description]),DISTINCT('YTD FY21'[Rank Description])))

 

or

 

distinct(Rank = UNION(all(FY20WTD_MTD_YTD[Rank Description]),all('YTD FY21'[Rank Description])))

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

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.