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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
prashantg364
Helper II
Helper II

DAX

I have a data table below where we can see employees worked under which scope on a particular date.

I want to create an output table where I would like to see distinct employees worked under which scope at the week level.

EmployeescopeDateWK
alphaSST01-Jan-231
alphaCVT02-Jan-231
alphaSST03-Jan-231
betaCLT04-Jan-231
betaCLT05-Jan-231
betaCLT06-Jan-231
gamaCVT07-Jan-231
gamaCVT08-Jan-232
gamaCVT09-Jan-232
alphaSST10-Jan-232
alphaSST11-Jan-232
alphaSST12-Jan-232
betaSST13-Jan-232
betaSST14-Jan-232
betaSST15-Jan-233
gamaCLT16-Jan-233
gamaCLT17-Jan-233
gamaCLT18-Jan-233
alphaSST19-Jan-233
alphaCVT20-Jan-233
alphaSST21-Jan-233
betaSST22-Jan-234
betaCVT23-Jan-234
betaCVT24-Jan-234
gamaSST25-Jan-234
gamaCVT26-Jan-234
gamaSST27-Jan-234

 

required Output table

 

ScopeSSTCVTCLTSST+CVT
Wk10111
Wk22100
Wk31011
Wk40002
3 REPLIES 3
danextian
Super User
Super User

hI @prashantg364 ,

 

Can you please double check? Your sample data does not match  with your expected result.  For example, there are supposed to be 1, 2, 2 and 2 for each week under SST but yours shows differently.  Also, it is unclear whether the output is in a visual or how the data should be loaded into the model.

 

Anyways, the attached pbix  might be what you're looking for.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

The output is not correct.

Let me re-phrase my question.
I have data with employee's name & the work done on a particular date. Now I want to summarize my table to know how many unique employees worked in one scope & how many unique employees worked in multiple scopes.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file if it suits your requirement.

All measures are in the attached pbix file.

 

Jihwan_Kim_1-1697523466578.png

 

 

Jihwan_Kim_0-1697523451978.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.