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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Slaper
Frequent Visitor

How in a column to not show some values based on a change in another column

Hello,

I have a table named tbl. In report view I created a table like below with some measure.
Now my question is how do I get the calculated value only on the last row just before an other Team, and not on each row as I wrote What i get. The %_value calculate I with two measures.

I use this table as a tooltip

 

%_valueTeamOrderTime RunTime Run net what i get
 T_1o_11:101:00 111%
111%T_1o_22:102:00 111%
 T_2o_20:551:00 81%
81%T_2o_33:003:50 81%
 T_3o_42:001:50 98%
 T_3o_50:100:20 98%
 T_3o_60:200:22 98%
98%T_3o_70:530:55 98%
       
       
 %_Val = SUM(tbl[Time Run]) / SUM(tbl[Time Run net])
 %_Value = CALCULATE([%_Val],ALLEXCEPT(tbl,tbl[Team]))
1 ACCEPTED SOLUTION
Slaper
Frequent Visitor

The filter was a slicer , but with dates its was not working, so I punt a filter on 'Filter on this visuale' and if a other value was Blank, then this record was not shown 🙂

I used it for a tooltip.

View solution in original post

3 REPLIES 3
Slaper
Frequent Visitor

The filter was a slicer , but with dates its was not working, so I punt a filter on 'Filter on this visuale' and if a other value was Blank, then this record was not shown 🙂

I used it for a tooltip.

v-yifanw-msft
Community Support
Community Support

Hi @Slaper ,

Please follow these steps:

  1.        Turning Measure into Column

vyifanwmsft_15-1700459400583.png

 

 

 

Column%_Val =
'Table'[Time Run] / 'Table'[Time Run net]
Column%_value =
CALCULATE ( [%_Val], ALLEXCEPT ( 'Table', 'Table'[Team] ) )

 

 

  1.         Arrange in order with measure

vyifanwmsft_14-1700459338236.png

 

sequence =
RANKX (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Column%_value] = SELECTEDVALUE ( 'Table'[Column%_value] )
    ),
    CALCULATE ( MAX ( 'Table'[Order] ) ),
    ,
    DESC,
    DENSE
)

 

 

  1.        Final output

vyifanwmsft_16-1700459447510.png

 

result =
IF ( 'Table'[sequence] = 1, 'Table'[%_Value], "" )

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

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

thanks for the reply, but I use this for a tooltip , and want to filter over year month week day, for the moment it  gives all the date and does not want to filter

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.