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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

How to combine already filtered rows based on one attribute?

I hope my Subject is good. Please somebody help me, because I can't find solution.

My table is in Power BI dashboard. I was creating this table based on some filters.

 

My filters:

Count of Idea is greater than or equal -> 2

Created 2019.01.01. - 2019.12.31

Employee: All

Departament: All

Status: Completed

 

In Power BI dashboard I see the table with results:

DepartamentCount of IdeaEmployee
IT2Peter
IT5John
Finance3Asli

 

It's ok, but I need to combine and to see this. I don't need to see Employees names, but I need to use some of the filters described above.

DepartamentCount of Idea
IT2
Finance1

 

How can I count rows based on attribute Departament? I can't find solution how to count already counted values on table.

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Count of ID is a column that is created only in that specific instance. It doesnt exist before the expression is evaluated. 

I forgot the Count of ID filter that you wanted to apply so i modified the measure a little bit. 

Measure = 
Calculate(
Distinctcount('Table'[Employee]),
Filter(
Summarize(
'Table',
'Table'[Employee],
'Table'[Department],
"Count of ID",
Countrows('Table')
),[Count of ID] > 1 )
)


Give it a try and llet me know if the results are correct. 

/J


Connect on LinkedIn

View solution in original post

6 REPLIES 6
tex628
Community Champion
Community Champion

Do you have a table for your employees? 


Connect on LinkedIn
Anonymous
Not applicable

I'm using Sharepoint list as a data source , where are:
• Employee (name, surname)
• Departament
• Idea (by Lean methodology)
• etc.

tex628
Community Champion
Community Champion

Measure =
Calculate(
Distinctcount('Table'[Employee]),
Summarize(
'Table',
'Table'[Employee],
'Table'[Department],
"Count of ID",
Countrows('Table')
)

Try this

 


Connect on LinkedIn
Anonymous
Not applicable

Ok, but what is Count of ID in your Measure?

And how can I use filter Count of Idea is greater than or equal 2?

I see results, but it's not good results.

 

My data and filters:

data.png

I want to see this:

Padalinys (groups)Count of ID
SD4
FD10
tex628
Community Champion
Community Champion

Count of ID is a column that is created only in that specific instance. It doesnt exist before the expression is evaluated. 

I forgot the Count of ID filter that you wanted to apply so i modified the measure a little bit. 

Measure = 
Calculate(
Distinctcount('Table'[Employee]),
Filter(
Summarize(
'Table',
'Table'[Employee],
'Table'[Department],
"Count of ID",
Countrows('Table')
),[Count of ID] > 1 )
)


Give it a try and llet me know if the results are correct. 

/J


Connect on LinkedIn
Anonymous
Not applicable

Thank you. Everything is good Smiley Happy

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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