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
surendar12
Regular Visitor

Parameter is not correct type

Hi ,

 

  I have a measure called num_users .  Attached below is an excel format of the data . I am trying to create new measure : EARLIEST(num_users) and powerBI throws an error.

 

 

Capture1234.PNG

 

Thanks in advance.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @surendar12 ,

You can try to use following calculate column formula if it meets for your requirement:

Column =
VAR minPath =
    CALCULATE (
        MIN ( Table[Path_Sequence] ),
        FILTER (
            ALLSELECTED ( Table ),
            [Event_Date] = EARLIER ( Tabel[Event_Date] )
                && [Category] = EARLIER ( Table[Category] )
        )
    )
RETURN
    LOOKUPVALUE (
        Table[Num_users],
        Table[Event_Date], [Event_Date],
        Table[Category], [Category],
        Table[Path_Sequence], minPath,
        MIN ( Table[Num_users] )
    )

Regards,
Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @surendar12 ,

You can try to use following calculate column formula if it meets for your requirement:

Column =
VAR minPath =
    CALCULATE (
        MIN ( Table[Path_Sequence] ),
        FILTER (
            ALLSELECTED ( Table ),
            [Event_Date] = EARLIER ( Tabel[Event_Date] )
                && [Category] = EARLIER ( Table[Category] )
        )
    )
RETURN
    LOOKUPVALUE (
        Table[Num_users],
        Table[Event_Date], [Event_Date],
        Table[Category], [Category],
        Table[Path_Sequence], minPath,
        MIN ( Table[Num_users] )
    )

Regards,
Xiaoxin Sheng

Tahreem24
Super User
Super User

Can you please specify what measure logic you want to calculate?
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Tahreem24 

 

  This is what I am trying to do .

 

Capture123.PNG

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.