Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Age = FLOOR(IF([dob]< TODAY(), DATEDIFF([dob], TODAY(), DAY) / 365.25, 0), 1)
i have two calculated fields in different tables defined as above - these work fine on their own
trying to get a formula below to work : ie anyone over 70 who have not had an eGFR recently needs a blood test.
aany ideas? thanks
Hi @cheezy ,
Please share some sample data if you don't have any Confidential Information.
Best Regards,
Jay
Hi @cheezy
SelectedValue works when you have column returns 1 value from column. If your column is aggregating , lets say 71 is for multiple people on given selection it will return NULL value and hence your if statement will never get true and returns "Not Working"
See screenshot for the reference.
You might need to use other aggregate function or include further granuality on your table selection to have desired results.
Regards
Proud to be a Super User!
@cheezy , you need row value then it should be the max not selected value.
Please find one formula changed
Blood Test =
IF( (max(app_patient_details[Age]) >69 && max(app_appointments[eGFR months]) > 0), "Blood Test","Not Working")
This didn't work unfortunately- all rows return blood test now irrespective of age or egfr
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |