Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to make a matrix in power bi similar to this table. If, for example, I filter the day Wednesday, the matrix should only display data for Monday, Tuesday and Wednesday.
It should look something like this:
I was thinking of making a measure that would see the name of the day selected in the filter and assign the number that corresponds to that day of the week. And then compare that number with the number that would correspond to the day of the line. If it is less than or equal, it would bring in sales. If it is not, it must come blank.
Sales Pairs TY Report =
VAR NumDiaSeleccionado = MAX(D_DATES[day_week_number])
VAR SemanaSeleccionada = SELECTEDVALUE('D_DATES'[weekBATA])
VAR AnioSeleccionado = SELECTEDVALUE('D_DATES'[year])
RETURN
IF (
MAX(D_DATES[day_week_number]) <= NumDiaSeleccionado &&
MAX(D_DATES[weekBATA]) = SemanaSeleccionada &&
MAX(D_DATES[year]) = AnioSeleccionado,
[Sales Pairs TY],
BLANK()
)
But as you can see, the measure of the filtered day number does not work and takes the number of each row so it always meets the condition of being equal and brings data.
Solved! Go to Solution.
Hi, @natico
You can try the following methods.
Sample data:
Create a new slicer table:
Slicer = SUMMARIZE(D_DATES,D_DATES[Name],D_DATES[Weekday])
Measure = IF(SELECTEDVALUE(D_DATES[Weekday])>SELECTEDVALUE(Slicer[Weekday]),BLANK(),SUM(D_DATES[Sales]))
Is this the result you expected? Please refer to the attachment.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @natico
You can try the following methods.
Sample data:
Create a new slicer table:
Slicer = SUMMARIZE(D_DATES,D_DATES[Name],D_DATES[Weekday])
Measure = IF(SELECTEDVALUE(D_DATES[Weekday])>SELECTEDVALUE(Slicer[Weekday]),BLANK(),SUM(D_DATES[Sales]))
Is this the result you expected? Please refer to the attachment.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@natico Hi! Try with this adjusted measures:
FIRST:
SelectedDayNumber = SELECTEDVALUE('D_DATES'[day_week_number])
SECOND:
Sales Pairs TY Report =
VAR SelectedDayNumber = [SelectedDayNumber]
VAR DayOfWeekNumber = SELECTEDVALUE('D_DATES'[day_week_number])
VAR SemanaSeleccionada = SELECTEDVALUE('D_DATES'[weekBATA])
VAR AnioSeleccionado = SELECTEDVALUE('D_DATES'[year])
RETURN
IF (
DayOfWeekNumber <= SelectedDayNumber &&
MAX(D_DATES[weekBATA]) = SemanaSeleccionada &&
MAX(D_DATES[year]) = AnioSeleccionado,
[Sales Pairs TY],
BLANK()
)
BBF
@natico See if this helps: https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M5...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 23 | |
| 16 | |
| 15 | |
| 14 | |
| 8 |