This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello ,I'm New for power Bi and dax function
I want to create MTD YTD Slicer Based on date Column .
I try to create slicer using following DAX Function
I want to Create field parameter for MTD ,YTD ,QTD of car sales.
Kindly Giude And Help me for the Same .
have you try to use MIN instead of startofyear?
What's more, you can try to return yearstart and monthstart to see if the output is blank or not
Proud to be a Super User!
@ryan_mayu Thank you ,
Even after trying the MIN function, the error persists. The Date column contains date values and is not blank.
Date column is in Sale Time table And sales value is in electric car table ,
is there need to relation between them?
in both table car sold is common column
maybe you can try this
VAR YearStart = CALCULATE(STARTOFYEAR(SalesTimeline[Date]), filter(SalesTimeline,YEAR(SalesTimeline[Date]) = YEAR(TODAYDATE) && not (isblank(SalesTimeline[Date]))
I didn't see you usesales value in the DAX.
What did you get if you return YearStart or return MonthStart?
if the issue is still existing, could you pls share the pbix file?
Proud to be a Super User!
Thank you for your response! I haven't included the Sale column in the DAX formula yet, and I'm a bit confused about where exactly to use it. Could you please provide the completed query with the Sale column added in the correct place?
I am also confused about how to put the sales column into your DAX. Let's go back from the beginning. Could you pls please provide the sample data and expected output? Then I can have a good understanding of your request.
Proud to be a Super User!
Calculate MTD ,YTD,QTD like following
have you seen my attachment in my last reply?
Proud to be a Super User!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 22 | |
| 22 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 43 | |
| 41 | |
| 39 | |
| 21 | |
| 19 |