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
vividarinda
Helper II
Helper II

Flag The Data and Show Max Min with Other Column

Hi All,

I have the data like this :

table historical ->

vividarinda_0-1717055760640.png

 

table logic ->

vividarinda_1-1717055879310.png

 

 

the visualization  like this :

vividarinda_2-1717055916610.png

but expected result like this :

vividarinda_3-1717056003150.png

 

i want to show the visualization historical based on table logic.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vividarinda 

 

Here I create 2 measure:

BlowbuPress =
VAR _currentUnitno =
    SELECTEDVALUE ( 'raw data'[unitno] )
RETURN
    CALCULATE (
        MAX ( 'raw data'[blowbypress_max] ),
        FILTER ( ALLSELECTED ( 'raw data' ), 'raw data'[unitno] = _currentUnitno )
    )
Boost_press =
VAR _currentUnitno =
    SELECTEDVALUE ( 'raw data'[unitno] )
RETURN
    CALCULATE (
        MIN ( 'raw data'[boost_press_max] ),
        FILTER ( ALLSELECTED ( 'raw data' ), 'raw data'[unitno] = _currentUnitno )
    )

The result is as follow:

vzhengdxumsft_0-1717478249081.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@vividarinda ,The information you have provided is not making the problem clear to me. Can you please explain with an example. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

I updated visualization visualization 

Anonymous
Not applicable

Hi @vividarinda 

 

I can't understand the logic completely.

Why the Ex0208 is 17.3 and 103?

vzhengdxumsft_0-1717468874975.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @Anonymous ,

Thanks for your reply

vividarinda_0-1717471095678.png

vividarinda_1-1717471222504.png

 

results obtained from it :
1. field flagging from raw data table is 1 and
2. value blowbypress_max in raw data if compare in logic table, get max value
and value bosstpress_max in raw data if compare in logic table, get min value

Anonymous
Not applicable

Hi @vividarinda 

 

Here I create 2 measure:

BlowbuPress =
VAR _currentUnitno =
    SELECTEDVALUE ( 'raw data'[unitno] )
RETURN
    CALCULATE (
        MAX ( 'raw data'[blowbypress_max] ),
        FILTER ( ALLSELECTED ( 'raw data' ), 'raw data'[unitno] = _currentUnitno )
    )
Boost_press =
VAR _currentUnitno =
    SELECTEDVALUE ( 'raw data'[unitno] )
RETURN
    CALCULATE (
        MIN ( 'raw data'[boost_press_max] ),
        FILTER ( ALLSELECTED ( 'raw data' ), 'raw data'[unitno] = _currentUnitno )
    )

The result is as follow:

vzhengdxumsft_0-1717478249081.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

Thank you so much for the reply and solution. Amazing !

Hi @amitchandak ,

This link : visualization.pbix

The expected result refer from Raw Data Table and Logic Table. If value from on Raw Data Table min or max from threshold on Logic Table, then show the visualization.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.