Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi, I would like to create a graph like the one below qhich is showing the count of persons by tenure at a business firm. How can I get the x axis like this. think I do have an idea of how to calculate the values by calculating the date difference between start date and end date for the number of years and do a count for earch xaxis series.
Solved! Go to Solution.
make barckets of your tnure like the following
Bracker = SWITCH( TRUE(), Table3[Tenure] >=0 && Table3[Tenure] <= 1, "0-1", Table3[Tenure] > 1 && Table3[Tenure] <= 2, "1-2", Table3[Tenure] > 2 && Table3[Tenure] <= 5, "2-5", Table3[Tenure] > 5 && Table3[Tenure] <= 10, "5-10", "> 10" )
@Sagejah9
You can add a new column in your table as follows
Create the following measure, add the new column to X axis and the measure to the value.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
make barckets of your tnure like the following
Bracker = SWITCH( TRUE(), Table3[Tenure] >=0 && Table3[Tenure] <= 1, "0-1", Table3[Tenure] > 1 && Table3[Tenure] <= 2, "1-2", Table3[Tenure] > 2 && Table3[Tenure] <= 5, "2-5", Table3[Tenure] > 5 && Table3[Tenure] <= 10, "5-10", "> 10" )
User | Count |
---|---|
77 | |
70 | |
70 | |
54 | |
48 |
User | Count |
---|---|
43 | |
37 | |
34 | |
31 | |
28 |