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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Count of projects on each server

Hi, Am new to PowerBi and just trying to get familiar, so i have a project data which is in this format.

 

Sample.PNG

How do i calculate New Projects in Past 7 Days and count of projects on each server

It would be great if anyone can guide me to any tutorial of DAX basics 

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

New Project in Past 7 = 
VAR FilterDate = Today() - 7
RETURN CALCULATE( CountRows('YourTable'), 'YourTable'[Created Date] >= FilterDate )

This assumes each line is a project without any duplications you don't want counted.

 


As for project count, if you create a matrix visual, place the ServerName as the rows and the Project Name as the value.  You can then instruct Power BI, using the dropdown on the field name, to do a distinct count.  It will effectively measure it the same as:

ProjectCount = DISTINCTCOUNT('YourTable'[Project Name])

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

New Project in Past 7 = 
VAR FilterDate = Today() - 7
RETURN CALCULATE( CountRows('YourTable'), 'YourTable'[Created Date] >= FilterDate )

This assumes each line is a project without any duplications you don't want counted.

 


As for project count, if you create a matrix visual, place the ServerName as the rows and the Project Name as the value.  You can then instruct Power BI, using the dropdown on the field name, to do a distinct count.  It will effectively measure it the same as:

ProjectCount = DISTINCTCOUNT('YourTable'[Project Name])
Anonymous
Not applicable

@Anonymous Thank you this does the job! 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors