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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
RobRayborn
Helper IV
Helper IV

If Holiday

I have a Measure that of Sum(UnitSales, [Sales Amount]). I also have a Date table with a IsHoliday Column is True or False.
The UnitSales Table will show 0 on days that nothing was sold, and Weekends also show as 0.  
I have a Table Visual with the Date in the first column and the Sum(UnitSales, [Sales Amount]) in the second column.

I need a DAX measure that will show if the Date is a Holiday (True) then "Holiday", else the Sum(UnitSales, [Sales Amount]).

It seems pretty straight forward until start writing the DAX measure out.

1 ACCEPTED SOLUTION
ChiragGarg2512
Super User
Super User

@RobRayborn , create a measure using if statement,

DayStatus = if(selectedvalue(isHoliday) = True(), "Holiday", Sum(UnitSales, [Sales Amount]))

This should help, Thank You.

View solution in original post

1 REPLY 1
ChiragGarg2512
Super User
Super User

@RobRayborn , create a measure using if statement,

DayStatus = if(selectedvalue(isHoliday) = True(), "Holiday", Sum(UnitSales, [Sales Amount]))

This should help, Thank You.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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