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

How to get specific values of each project ?

Hi Guys, I am new to powerBi ! 

I show my requirements below.............! please check them up

This is my table..... Here each project has separate headcount values itself. For example, Project A -> 8  Project B -> 1 

ee.png


I need a cloumn like this 

er.png

How to create by dax query ? 

1 ACCEPTED SOLUTION
NPR
Frequent Visitor

 

 This is the correct solution for it Smiley Very Happy

ProjectWithheadCount = CALCULATE(DISTINCTCOUNT(sourceTable[headcount]), ALLEXCEPT(sourceTable, sourceTable[Project])) 

View solution in original post

2 REPLIES 2
NPR
Frequent Visitor

 

 This is the correct solution for it Smiley Very Happy

ProjectWithheadCount = CALCULATE(DISTINCTCOUNT(sourceTable[headcount]), ALLEXCEPT(sourceTable, sourceTable[Project])) 

Anonymous
Not applicable

Hi @NPR 

Look at countrows(), with earlier() Filter.

Good luck!
A

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.