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.
Hi, Am new to PowerBi and just trying to get familiar, so i have a project data which is in this format.
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.
Solved! Go to Solution.
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])
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 Thank you this does the job!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |