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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone, i have sample table like this picture:
I'll describe the table columns:
I've had a problem and it makes me stuck, i just want to show data from previous month whenever the month is changed (when the current month and date is February 1st, i want to show data from yesterday/last day of the month), is there any way to show it?
P.S. : I used date_for_visual for the slicer
The sample data
Table realationship
Using actual_date
Current condition
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
In the below sample, I tried to create last non blank value for fulfilled sales.
Last Non Blank fulfilled sales Value: =
VAR _SelectedDate =
MAX ( 'calendar'[Date] )
VAR _lastnonblankdate =
MAXX (
FILTER (
ADDCOLUMNS (
FILTER (
ALL('calendar'[Date]),
'calendar'[Date] <= _SelectedDate
),
"@metrics", CALCULATE ( SUM ( sales[fulfilled_sales] ) )
),
NOT [@metrics] == BLANK ()
),
'calendar'[Date]
)
RETURN
CALCULATE (
SUM ( sales[fulfilled_sales] ),
REMOVEFILTERS ( 'calendar' ),
'calendar'[Date] = _lastnonblankdate
)
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
In the below sample, I tried to create last non blank value for fulfilled sales.
Last Non Blank fulfilled sales Value: =
VAR _SelectedDate =
MAX ( 'calendar'[Date] )
VAR _lastnonblankdate =
MAXX (
FILTER (
ADDCOLUMNS (
FILTER (
ALL('calendar'[Date]),
'calendar'[Date] <= _SelectedDate
),
"@metrics", CALCULATE ( SUM ( sales[fulfilled_sales] ) )
),
NOT [@metrics] == BLANK ()
),
'calendar'[Date]
)
RETURN
CALCULATE (
SUM ( sales[fulfilled_sales] ),
REMOVEFILTERS ( 'calendar' ),
'calendar'[Date] = _lastnonblankdate
)
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |