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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
srlabhe
Super User
Super User

Row Context Flag Issue

Hi Team,

I have data which I wanted to filter with below flag as 1 i.e. ToShow=1, formula for ToShow is as below

 

ToShow =
if(
CALCULATE(
    MAX(Table[AS_OF_DATE]), 
    FILTER(
        ALL(Table),
        Table[Event ID] = SELECTEDVALUE(Table[Event ID]) && 
        Table[AS_OF_DATE] <= [MaxAsOfDateSelected] // Filter for dates before the selected slicer date
    )
)=SELECTEDVALUE(V_EXCEPTION_WF_TASK[AS_OF_DATE]),1,0)
   Now when I apply this filter on Table Visual as ToSHow=1 and have As_Of_Date column in table visual it works fine, but the moment I take the As_Of_Date coplumn from visual the data changes. Like For Event ID 40 as below
with AS_OF_DATE in table visual
srlabhe_0-1759767177714.png

 

 and without AS_OF_DATE its blank like below 
srlabhe_1-1759767212613.png

This happens for many Event Ids in report , 40 is just an example. 

Any idea what could be issue here ?

Thanks

 
1 ACCEPTED SOLUTION
srlabhe
Super User
Super User

This is resolved by creating a column as below

TempCol=[Toshow]

and using this column as well in visual filter as TempCol=1 

View solution in original post

3 REPLIES 3
srlabhe
Super User
Super User

This is resolved by creating a column as below

TempCol=[Toshow]

and using this column as well in visual filter as TempCol=1 

d_m_LNK
Super User
Super User

I believe this is blanking the visual because mulitple dates are passed to the visual instead of defining the AS OF Date -  Since it doesn't know what date to limit to it can't complete the calculation and shows blank.

-----------------------
Did this help?
Drop a kudo so others can find it ! 😄
Mark as a solution if it helped you make progress on your issue 😃

There are few other date fields added to visual as part of report requirement, but ToShow has been designed on AS_OF_DATE field only, and not sure hows does it works for other IDs ?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.