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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

single select but display the range

Hi, Here is the data looks like, and the slicer is the datamonth

 

 

I want to make it realize that when the slicer select 202112, the data returns when datamonth>=202101 and datamonth <=slicer 202111,

and when the slicer is 202210, the data returns when datamonth>=202201 and datamonth <=slicer 202210,

 

 

do you have any solutions to solvecthat? Thanks.

1 REPLY 1
FreemanZ
Super User
Super User

you would need another table for the slicer, the dataset

FreemanZ_0-1670419724576.png

FreemanZ_1-1670419746987.png

 

try to create a measure with this:

 

ValueYTD =
VAR _Month = MAX(DateTable[DateMonth])
VAR _Year = LEFT(MAX(DateTable[DateMonth]),4)
RETURN
CALCULATE(
    SUM('DataTable'[Value]),
    'DataTable'[DataMonth] <= _Month
        &&LEFT('DataTable'[DataMonth],4) = _Year
)
 
i tried and it worked like this:
FreemanZ_2-1670419823320.pngFreemanZ_3-1670419840451.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.