Forum Discussion
Simple DAX percent complete measure
I am a SQL guy but I do not know DAX at all. I've researched a lot of examples but can't seem to figure out the [% Complete] part. Sorry for formatting and please see below for more details.
My dataset looks like this:
Name | Frequency | Equipment | Asset Count | Asset Complete Count | StartDate
ClubA | Monthly | Bikes | 1 | 1 | 3/1/2020
ClubA | Monthly | Bikes | 1 | 0 | 2/1/2020
ClubA | Monthly | Bikes | 1 | 0 | 1/1/2020
ClubA | Monthly | Bikes | 1 | 1 | 12/1/2019
ClubA | Monthly | Bikes | 1 | 1 | 3/1/2020
ClubA | Weekly | Bikes | 1 | 0 | 2/1/2020
ClubA | Weekly | Bikes | 1 | 0 | 1/1/2020
ClubA | Weekly | Bikes | 1 | 1 | 12/1/2019
ClubB | Monthly | Bikes | 1 | 0 | 2/1/2020
ClubB | Monthly | Bikes | 1 | 1 | 3/1/2020
ClubB | Weekly | Bikes | 1 | 1 | 3/1/2020
I need to output this:
Name | Frequency | EquipmentType | Asset Complete Total | Asset Total | % Complete
ClubA | Monthly | Bikes | 3 | 5 | 60%
ClubA | Weekly | Bikes | 1 | 3 | 33.3%
ClubB | Monthly | Bikes | 1 | 2 | 50%
ClubB | Weekly | Bikes | 1 | 1 | 100%
Thank you
Hi @jcaguin3
Are you looking for the table-shaped output?
If yes, you can consult the soltion pbix file here
Bless you!
Vivek
If it helps, please mark it as a solution
Congratulations would be a cherry on top 🙂
https://www.vivran.in/
Connect on LinkedIn
1 Reply
- vivran22
Community Champion
Hi @jcaguin3
Are you looking for the table-shaped output?
If yes, you can consult the soltion pbix file here
Bless you!
Vivek
If it helps, please mark it as a solution
Congratulations would be a cherry on top 🙂
https://www.vivran.in/
Connect on LinkedIn