Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
Solved! Go to Solution.
@RobRayborn , create a measure using if statement,
DayStatus = if(selectedvalue(isHoliday) = True(), "Holiday", Sum(UnitSales, [Sales Amount]))
This should help, Thank You.
@RobRayborn , create a measure using if statement,
DayStatus = if(selectedvalue(isHoliday) = True(), "Holiday", Sum(UnitSales, [Sales Amount]))
This should help, Thank You.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
9 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |