Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I have the data like this :
table historical ->
table logic ->
the current visualization like this :
but expected result like this :
i want to show the visualization historical based on table logic.
this link for power bi : visualization
Solved! Go to Solution.
Hi @vividarinda ,
Thanks @RossEdwards for the quick reply. I have some other thoughts to add:
1.We can create two measures.
_blowbypress_max =
CALCULATE (
MAX ( 'raw data'[blowbypress_max] ),
FILTER (
ALLSELECTED ( 'raw data' ),
'raw data'[unitno] = MAX ( 'raw data'[unitno] )
&& 'raw data'[blowbypress_max_flag] = 1
)
)
_boost_press_max =
CALCULATE (
MIN ( 'raw data'[boost_press_max] ),
FILTER (
ALLSELECTED ( 'raw data' ),
'raw data'[unitno] = MAX ( 'raw data'[unitno] )
&& 'raw data'[boost_press_max_flag] = 1
)
)
2.Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @vividarinda ,
Thanks @RossEdwards for the quick reply. I have some other thoughts to add:
1.We can create two measures.
_blowbypress_max =
CALCULATE (
MAX ( 'raw data'[blowbypress_max] ),
FILTER (
ALLSELECTED ( 'raw data' ),
'raw data'[unitno] = MAX ( 'raw data'[unitno] )
&& 'raw data'[blowbypress_max_flag] = 1
)
)
_boost_press_max =
CALCULATE (
MIN ( 'raw data'[boost_press_max] ),
FILTER (
ALLSELECTED ( 'raw data' ),
'raw data'[unitno] = MAX ( 'raw data'[unitno] )
&& 'raw data'[boost_press_max_flag] = 1
)
)
2.Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can do this with a measure. You'll need 1 measure for blowbypress_max and another for boost_press_max.
The basic structure of your measure would be:
Blow by Press Max = var UnitNo = SELECTEDVALUE('YourTable'[UnitNo])
RETURN
SWITCH(
UnitNo,
"PC2000", <Some Code Here>,
"HD785", <Some Code Here>,
"D375A", <Some Code Here>,
BLANK()
)
just replace the "Some Code Here" with the dax code that would do what you need and how it differs between units.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |