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
Anonymous
Not applicable

Custom Column Header

I have a main table that pulls data from the db. I am using a different table using the same source to use in filter and a third date table where a calculated column formatted in 'mm/dd' is used as column header. 
Now the issue is that, 
I have selected a date '2023-09-03' in the filter the for that date that is '09/03' it should show "A" as column header for all other dates it should show "B" but it is showing B for all. 
Thanks in advance fir the help!

AlishaJosh_0-1704970856071.png

 

4 REPLIES 4
Anonymous
Not applicable

The requirement is not to use it as a filter; but to use it as a second column header (and for that to happen it should come as a calculated column and not a measure)

Anonymous
Not applicable

Hi @Anonymous ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1705025894083.png

vtianyichmsft_1-1705025925327.png

If you need to filter, you can set measure to Selected in the filter

Measure = var _s = SELECTEDVALUE('Table 2'[Date])
RETURN IF(MAX('Table'[Date])=_s,"Selected","Unselected")

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

Anonymous
Not applicable

That is the requirement; that it should show "A" for the selected value in the filter and for other it should show "B"

lukiz84
Memorable Member
Memorable Member

"It should show A" - where is that defined?

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.