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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Group and bucket

New to Dax and wondered if anyone can solve this issue fro me please

 

I have a table (simplified version below). that hold a list of People, relevant dates and some results, potential and actual.

 

TABLE1   
Person DatePotential ResultActual Result
Person 101/11/20201010
Person 102/11/202098
Person 116/11/202088
Person 121/11/2020109
Person 124/11/202065
Person 119/11/20201410
Person 101/10/20202320
Person 112/10/20201615
Person201/11/20201212
Person202/11/20201312
Person216/11/20201510
Person221/11/20201616
Person224/09/20201210
Person219/10/20201412
Person201/09/20201615
Person212/10/20201514

 

There is a slicer, that will determine the time range i'm interested in, assumeing the slicer is set to November 2020, then i ned to aggregate the data to determine the total results for each person in the list and work out the ratio of Actual Result against Potential result as show below

 

TABLE2    
PersonCount of EmployeeRatioPotential ResultActual Result
Person 1188%5750
Person 2189%5650
Person 3177%5744
Person 4188%4842
Person 5195%4442
Person 6184%5042
Person 7169%5941
Person 8191%4339
Person 9195%4038
Person 10195%4038

 

I am then lookng to count up the number of occurrances in each band, like show below

 

Count   
0-70%71-80%81-90%91-100%
1144

 

Then show as percentage of the line total

 

Percentage   
10%10%40%40%

 

Is this possible to do in dax? It's the initial slicer with the dynamic timeline that is giving me a headache.

 

Any help would be appraciated

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Please check the attached file. hope the file gives you what you expected.

 

You can download the file: HERE

Fowmy_0-1607769297713.png

 

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply, so easy when you know how. Appreciate your time

Fowmy
Super User
Super User

@Anonymous 

Please check the attached file. hope the file gives you what you expected.

 

You can download the file: HERE

Fowmy_0-1607769297713.png

 

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.