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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

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.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak ,

I updated visualization visualization 

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 @v-zhengdxu-msft ,

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

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 @v-zhengdxu-msft ,

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.