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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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