Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
88 | |
87 | |
35 | |
35 |
User | Count |
---|---|
154 | |
100 | |
83 | |
63 | |
54 |