Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi,
I have the following problem and I can not find my way out...
I have a table with the Employees information, some basic info like below:
Now, based on the following 2 slicers, I would like to know whether this employee will be retired or not.
Slicer 1: Number of Year (0 to 10) --> This is the number of years in the future.
Slicer 2: Retirement Age (60 to 70) --> Age when you will get retired.
My final goal is to be able to show per Company how many people will be retired considering the selection done in the 2 previous slicers. Any thoughs?
I was trying with a measure like below but I got stucked while considering all the Ages and companies...
Solved! Go to Solution.
Hi @Morganius ,
You could try this meausre:
Number of retirees per company =
var _reage=SELECTEDVALUE('Slicer 2'[Retirement Age])
var _year=SELECTEDVALUE('Slicer 1'[Number of Year])
return CALCULATE(COUNT('Table'[Name]),FILTER(ALLSELECTED('Table'),[Company]=MAX('Table'[Company])&&[Age]+_year>=_reage))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Morganius ,
You could try this meausre:
Number of retirees per company =
var _reage=SELECTEDVALUE('Slicer 2'[Retirement Age])
var _year=SELECTEDVALUE('Slicer 1'[Number of Year])
return CALCULATE(COUNT('Table'[Name]),FILTER(ALLSELECTED('Table'),[Company]=MAX('Table'[Company])&&[Age]+_year>=_reage))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 11 | |
| 6 | |
| 5 |