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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
HI I have a table called JP Outputs
POF
0.2234 |
0.2344 |
0.3455 |
And another table called Pof per Day
DAYS
Days | PoF Today |
1 | 0.28 |
2 | 0.34 |
3 | 0.456 |
What I want to do is grab the POF from JP outputs and return the days that corresponds to the closest PoF using PoF Today
please plase please help
Solved! Go to Solution.
Hi @fingalbrad ,
Please try:
First, create a table visual of 'Pof per Day'
Then apply the measure to visual level filter:
Flag =
VAR _a =
ADDCOLUMNS (
ALL ( 'Pof per Day' ),
"Diff",
MINX (
'JP Outputs',
ABS ( [POF] - CALCULATE ( MAX ( 'Pof per Day'[PoF Today] ) ) )
)
)
RETURN
IF (
MAX ( 'Pof per Day'[Days] )
= MINX ( FILTER ( _a, [Diff] = MINX ( _a, [Diff] ) ), [Days] ),
1,
0
)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @fingalbrad ,
Please try:
First, create a table visual of 'Pof per Day'
Then apply the measure to visual level filter:
Flag =
VAR _a =
ADDCOLUMNS (
ALL ( 'Pof per Day' ),
"Diff",
MINX (
'JP Outputs',
ABS ( [POF] - CALCULATE ( MAX ( 'Pof per Day'[PoF Today] ) ) )
)
)
RETURN
IF (
MAX ( 'Pof per Day'[Days] )
= MINX ( FILTER ( _a, [Diff] = MINX ( _a, [Diff] ) ), [Days] ),
1,
0
)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.