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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
KasiaG
Frequent Visitor

How to set one chart with full month view, while one day is filterred?

Hello Guys!

I've created a report and this have to be filterred by one slicer with the exact date selected (DD-MM-YYYY).

Once date is selected, every visualisation is filterred for this day, BUT I want a specific one to be filterred for whole month from the selected day. So, for example, if the user will choose 08.09.2022, I want this chart to show whole September.

It is a chart that show daily sales (not cumulative, single value of sales for each day), and this is created from Table with columns "Calendar Day" and "Sales".

I've tried with ENDOFMONTH, but unsuccesfull. 

 

This is how chart is look like when whole month is selected, and I want to look exact the same way when only one day from that month is selected:

image.png

And this is how it is look like after selecting one date from a slicer:

KasiaG_0-1663051057829.png

Thanks Guys in advance!

3 REPLIES 3
Anonymous
Not applicable

Hi  @KasiaG ,

I created some data:

vyangliumsft_0-1663139224399.png

Here are the steps you can follow:

1. Create measure.

Flag =
var _select=SELECTEDVALUE('Table 2'[Date])
var _min=
DATE(
    YEAR(_select),MONTH(_select),1)
var _max=
EOMONTH(
    _min,0)
return
IF(
    MAX('Table'[Date]) >=_min&&MAX('Table'[Date]) <= _max,1,0)
Value =
var _select=SELECTEDVALUE('Table 2'[Date])
return
IF(
MAX('Table'[Date]) = _select,SUM('Table'[Rand]),BLANK())

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1663139224401.png

3. Visual  -- Format – X axis – Categorical

vyangliumsft_2-1663139224402.png

4. Result:

vyangliumsft_3-1663139224411.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Liu Yang,

 

I see your solution result in full month view in the aixle, but the value is only at the selected day.

I need the chart to contain full month view, including values from whole month when there will be filterred any day of that month. 

I know that I can simply just disconnect the chart from the filter, and create a new filter only for this chart. But would like to avoid that, to make the report more userfriendly.

DataInsights
Super User
Super User

@KasiaG,

 

See if this technique will meet your requirement:

 

https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors