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
alfonsoasenjo
Frequent Visitor

Summarize by codes, user and date

I wonder if anyone can help me with thisproblem. Basically I have a list with 4 columns, in the first I have names, in the second are some of the names that are in the second (some of them may be blank, in the third is the month of creation and the last is the month resolved.

What I want to achieve is a summary of the first table:

In the column

Resolved I used the number of accounts (table1)resolved by the number (table2)resolved by AND (table1)resolved month 12

Reiterates that I used the month of accounts (table1) resolved by the previous month (table2) resolved by AND (table1)created month 12

I used the SUMMARIZE formula in powerbi*

I have this:

Table: SUMMARIZE('Faults','Failures'[Resolved by],"Failures",CALCULATE(COUNTROWS(FILTER('Failures','Failures'[Resolution Month]-"Dec-20"))),"Repeat",CALCULATE(COUNTROWS(FILTER('Failures','Failures'[Creation Month]-"Dec-20"))))
but I don't know how to filter the second row "Repeat" by Resolved by previous

Any help is highly appreciated. Thanks a lot

Edit: I used this formulas in PowerBi

Solved = COUNTROWS(FILTER('Table1','Table1'[Solved by]='Table1'[Solved by] && 'Table1'[resolutiondate] >= MIN('Date'[Date]) && 'Table1'[resolutiondate] <= MAX('Date'[Date])))
Reiterate = COUNTROWS(FILTER('Table1', 'Table1'[Solved by previous]='Table1'[Solved by previous] && 'Table1'[createddate] >= MIN('Date'[Date]) && 'Table1'[createddate] <= MAX('Date'[Date])))

The problem that I have is with the second formula, when I put it on a matrix it classifies it only with respect to solved by and not solved by previous. Any help is really appreciated. Thanks a lot.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @alfonsoasenjo ,

 

Please create measures like below and then create a calculated table.

Measure = CALCULATE(COUNT('Table'[Sloved by previous]),FILTER(ALL('Table'),'Table'[Created Month]=12&&'Table'[Sloved by previous] in VALUES('Table'[Sloved by])))+0
Measure 2 = CALCULATE(COUNTROWS(FILTER('Table','Table'[Resolved Month]=12)))+0
Table 2 = SUMMARIZE('Table','Table'[Sloved by],"S",[Measure 2],"Re",[Measure])

V-lianl-msft_0-1610609231437.png

Sample .pbix

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @alfonsoasenjo ,

 

Please create measures like below and then create a calculated table.

Measure = CALCULATE(COUNT('Table'[Sloved by previous]),FILTER(ALL('Table'),'Table'[Created Month]=12&&'Table'[Sloved by previous] in VALUES('Table'[Sloved by])))+0
Measure 2 = CALCULATE(COUNTROWS(FILTER('Table','Table'[Resolved Month]=12)))+0
Table 2 = SUMMARIZE('Table','Table'[Sloved by],"S",[Measure 2],"Re",[Measure])

V-lianl-msft_0-1610609231437.png

Sample .pbix

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.