Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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 |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |