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
Anonymous
Not applicable

help with table and calculation

Hello

 

I am having trouble creating a table or chart that can show me how many people called for the same issue 2 times, 3 times and more than 3 times per month (iN jUNE, JULY and the August) . Thank you so much in advance!

Here is a sample data:


datadata

I was thinking to show something like this:

Capture1.PNG

1 ACCEPTED SOLUTION

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

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous 

It'll be much easier if your sample data could be copied and pasted.

Cheers!
A

Anonymous
Not applicable

 

I added the same table here:

 

Issue Name   Date      Person Name

category 119-JulMavi
category 219-JulJose
category 319-JulMiriam
category 419-JulMiriam
category 519-JulTom
category 519-JulTom
category 519-JulTom
category 519-JulPaul
category 119-JunPaul
category 219-JunCarla
category 319-JunAna
category 419-JunAna
category 419-AugAna
category 419-AugAna
category 619-AugJose
category 619-AugJose
category 619-AugJose

 

Thank you!!


@Anonymous wrote:

Hi @Anonymous 

It'll be much easier if your sample data could be copied and pasted.

Cheers!
A


 

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/
Anonymous
Not applicable

Hi @Anonymous 

Here are the steps for your requirement:

1. Create a month number column.

In edit query mode, add a new column and type this code

Date.Month([Date])

2. Add an index column. Under add column menu item, press add index. This is just to show all rows with duplicates.

3. Create a new custom column. DAX is:

Count =
CALCULATE (
    COUNTROWS ( T25 ),
    FILTER ( T25, T25[Issue] = EARLIER ( T25[Issue] ) ),
    FILTER ( T25, T25[Month Number] = EARLIER ( T25[Month Number] ) )
)

Now, you have the table with the relevant counter.
First Solution

2019-09-03 11_17_56-papercut - Remote Desktop Connection.png

 

Not sure if you want to count individuals or a general number of calls.

Anyhow, I think this is 90% of the solution if not a whole one.

Cheers!
A

Anonymous
Not applicable

Thank you for your help on this. It's a little close from what I wanted. I was looking into something that can show the counts of patients name that shows up in the list more than 2, 3 and 4 or more times. So for example, if Tom and Jose shows 3 times in the list, then I want a table that shows in one column the count of all the people whose names shows 3 times  (in this case 2 people) and then another column that shows how many times each of those names shows in the list (in this case each person shows 3 times). And then the same for those that shows 2 times,and 4 times or more. In power bi I did it with a table visual but it brings me all the names of the people and then it repeats the counts for each name which makes my table pretty long and hard to read. 

 

Something like this:

 

Count of People Times Called

23

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.