cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

how to find unique text year over year

I have a list of suppliers in column A and year when they have joined in column B. This data is appended year on year. I want to find out how many new year suppliers have joined in the current year as compared to previous Year and this has to be dynamic so that when i add the next year supplier list i get the fresh data.

1 REPLY 1
Community Support
Community Support

Hi @Krishnamurthy

Create calculated columns

discountofsupplier = CALCULATE(DISTINCTCOUNT(Sheet1[column A]),ALLEXCEPT(Sheet1,Sheet1[column B]))
prevoius = CALCULATE(DISTINCTCOUNT(Sheet1[column A]),FILTER(ALL(Sheet1),[column B]=EARLIER(Sheet1[column B])-1))
difference = [discountofsupplier]-[prevoius]

3.png

 

Best Regards

Maggie

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors