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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kusanagi
Frequent Visitor

Mark the cell before specific rank#

Hi experts,

Please support my question below.

For [Delete] column, I capture the delete wording by this formula:

Delete = IF([Type]="Delete","Delete",BLANK())
 
Then I rank the table by [Item#]
Rank = RANKX(FILTER('Table',[ITEM#]=EARLIER([ITEM#])),[MESS#],,ASC,Dense)
 

I would like to mark the all the cells <= the rank by [Item#] 

 

kusanagi_1-1711590626114.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1711599725175.png

 

 

delete CC =
VAR _messnumber =
    MAXX (
        FILTER (
            data,
            data[item_number] = EARLIER ( data[item_number] )
                && data[type] = "delete"
        ),
        data[mess_number]
    )
RETURN
    IF ( data[mess_number] <= _messnumber, "delete" )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1711599725175.png

 

 

delete CC =
VAR _messnumber =
    MAXX (
        FILTER (
            data,
            data[item_number] = EARLIER ( data[item_number] )
                && data[type] = "delete"
        ),
        data[mess_number]
    )
RETURN
    IF ( data[mess_number] <= _messnumber, "delete" )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.