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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lakshmanan
Frequent Visitor

Count matching rows for each date comparing with previous date

Hi , 
i an new to PowerBI , I am trying to create a measure to count the id's if it is present in the previous date and Count Id's if not present in the previous date based on date slicer selection. Kindly help me on this.
Table1:

DateId
1/2/20213211
1/2/20214561
1/2/20213112
5/3/20214356
5/3/20213211
5/3/20214561
5/3/20213245
5/3/20213821
4/6/20215432
4/6/20213112
4/6/20213211
4/6/20213542


Slicer : Date
So, if slicer selects 5/3/2021 ,it should compare with 1/2/2021 and if slicer selects 4/6/2021 ,it compares with 5/3/2021.

Example: Slicer selected : 5/3/2021
Matching ID's count on 5/3/2021 =2 (Matched ID's =3211 & 4561)
Unmatching Id count on 5/3/2021 = 3 
Unmatching Id count on 1/2/2021 =1

i have achieved with calculated column , since slicer is used . i need to create the measures for the above to change based on slicer selection. Kindly help me 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @lakshmanan,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.