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
Leebc
Regular Visitor

Count and list duplicate records.

Hi,

I am new to DAX and Power BI and need some assistance.

I have a table of clients who submit documents for approval. A new record using the client_ID is created for each time a client submits a document. I want to be able to list clients who have made 1 or more submissions and display client_ID, dates of each submission as well as the title of the document.

Regards
Colin

1 ACCEPTED SOLUTION

Hi @Leebc,

As the @tringuyenminh92 posted, you should create a Clustered column chart displays how many documents submitted for each client. Create a treemap including title as group level, Submission_Date as detial level, the count of titles as value level.

1.PNG

Then you should add a slicer as follows, when you click the Cient1, the column chart displays Cient1 submitted 2 documnets, the treemap shows the documents' titles and date. When you click Cient5, it returns all the information about Cient5, please see the following second screenshot.

Capture2.PNG

Capture3.PNG
If you have any problem, please feel free to ask.

Best Regards,
Angelia

View solution in original post

5 REPLIES 5

Based on your description, you may not need any DAX.  I'm not sure without a pic or sample data, but a matrix visual might do what you want:

 

Put Client ID, Submission Date and Document Title on the rows (in that order) and it should aggregate the data, so that for each Client ID, you will see every Submission Date and for each Submission Date, you will see the Document Title.

tringuyenminh92
Memorable Member
Memorable Member

Hi @Leebc,

 

Could you share current data structure or sample data? So I could quickly try and propose solution.

Simplistically, the data goes something like:

 

Client_IDSubmission_DateTitle
11/10/2016AAA
22/10/2016BBB
53/10/2016AAA
24/10/2016CCC
310/11/2016AAA
412/11/2016AAA
   
522/12/2016BBB
12/01/2017CCC
55/01/2017CCC
58/01/2017DDD
510/01/2017EEE

 

By executing a query on the data  I want to identify the number of submissions per client together with titles and dates of submission.  

The type of output I am looking for is:

1 submission: Client 3 submitted 1 document on 10/11/2016 and titled AAA

2 submission: Client 1 submitted 2 documents on 1/10/2016 and 2/01/2017 and titled AAA and CCC respectively

5 submissions: Client 5 submitted 5 documents on 3/10/2016, 22/12/2016, 5/01/2017 etc. and titled AAA, BBB

and CCC respectively

 

I trust this makes sense?

Hi @Leebc,

As the @tringuyenminh92 posted, you should create a Clustered column chart displays how many documents submitted for each client. Create a treemap including title as group level, Submission_Date as detial level, the count of titles as value level.

1.PNG

Then you should add a slicer as follows, when you click the Cient1, the column chart displays Cient1 submitted 2 documnets, the treemap shows the documents' titles and date. When you click Cient5, it returns all the information about Cient5, please see the following second screenshot.

Capture2.PNG

Capture3.PNG
If you have any problem, please feel free to ask.

Best Regards,
Angelia

Hi @Leebc,

 

I got your point but i'm not sure your expectation could be displayed in one graph/chart. So you could achieve it by use column chart and treemap as below picture:

 

2017-01-16_13h48_57.png2017-01-16_13h49_09.png

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.