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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Fine value (Point) from data range

Hi, 

 

I have seperate tables (and they are not related).

 

One table called "Order_Tbl" listing customer with delivery date against due date.

The other called "OT_Range" listing performace range based on Ontime percentage. 

 

dogbural_1-1673177750334.png

 

dogbural_0-1673177731863.png

 

Now I would like to add "Point" column to below table

For example, with OT_Percentage 50%, it should bring "30 points according to OT_Range.

 

Can someone help me as to how I can do so?

 

dogbural_2-1673177846195.png

 

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi  @Anonymous

try to plot as well a measure like this:

Point = 
VAR _pct = [OT_Percentage]
RETURN
MINX(
    FILTER(
        OT_Range,
        _pct>=OT_Range[MinValue]
            &&_pct<OT_Range[MaxValue]
    ),
    OT_Range[Points]
)

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

By the way, if I would like to count and present how many of point "A", "B" and "C" are in total from measured table, how can I calculate?

With example below, we should see 2 x "A" and 1 x "B". 

dogbural_0-1673272491764.png

 

hi @Anonymous 
That depends on many things. Try to plot card visuals with the two measure below:
CountA :=
VAR _table =
ADDCOLUMNS(
VALUES(Order_Tbl[Customer]),
"Points",
[Point]
)
RETURN
COUNTROWS(FILTER(_table, [Points]="A")

CountB :=
VAR _table =
ADDCOLUMNS(
VALUES(Order_Tbl[Customer]),
"Points",
[Point]
)
RETURN
COUNTROWS(FILTER(_table, [Points]="B")
p.s. please consider @me if you seek further suggestion, otherwise i may lose the thread.

Anonymous
Not applicable

Thank you

FreemanZ
Super User
Super User

hi  @Anonymous

try to plot as well a measure like this:

Point = 
VAR _pct = [OT_Percentage]
RETURN
MINX(
    FILTER(
        OT_Range,
        _pct>=OT_Range[MinValue]
            &&_pct<OT_Range[MaxValue]
    ),
    OT_Range[Points]
)

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors