expertise help
2 Topicsachieving current financial year to date in DAX
Hi friends, I need a DAX formula for my Custom Financial year. I would like to add a column called "Current_FY_to_Date" showing: my financial year starts 1st July and ends 30th June of the next year (e.g 1st July 2022 - 30 june 2023) and dax formula should return TRUE only for dates within my current financial year to date. any suggestions on how to achieve this would be appreciated. Current script: Central_Calendar = ADDCOLUMNS( CALENDAR(DATE(2022,1, 1), DATE(2030,1,1)) , "Year", YEAR([DATE]) , "MonthNumber", MONTH([DATE]) , "Month", FORMAT([DATE], "MMM") , "Quarter", "Q " & FORMAT([DATE], "Q") , "QuarterNumber", FORMAT([DATE], "Q") , "Year Quarter", YEAR([Date]) & " " & "Q" & QUARTER([Date]) , "Year Quarter Sort", YEAR([Date]) & QUARTER([Date]) , "YearMonthNumber", FORMAT([DATE], "yyyy-mm") , "Month Year", FORMAT([DATE], "MMM YY") , "Month Year Sort", YEAR([Date]) *100 + MONTH([Date]) , "Fiscal Year", YEAR(EDATE([DATE], 6)) , "FY", "FY" & IF(MONTH([Date])<7, YEAR([Date])-1 & "/" & FORMAT([Date], "YY"), YEAR([Date]) & "/" & FORMAT(EOMONTH([DATE], 6), "YY")) , "Fiscal Month", MONTH(EDATE([DATE], 6)) , "Fiscal Quarter", QUARTER(EDATE([DATE], 6)) , "Fiscal Week", WEEKNUM(EDATE([DATE], 6)) , "Last 6 Months", IF(EOMONTH([DATE], 0) > EOMONTH(TODAY(), -6) && [date] <= TODAY(), TRUE()) , "Current_FY_to_Date", IF([DATE] >= DATE(YEAR(TODAY()) -1, 7, 1) && [DATE] <= TODAY(),TRUE(), FALSE()) ) My current code is showing previous financial year up to year to date, not only current FY to date. ThanksSolved1.4KViews0likes2CommentsCumulative percentage measure to include some and exclude some filters & returning some constants
Hi dear all , Lemme make you understand my model. I have a measure Cumulative%oftotal as follows. When the measure applied on against the chassis list, I get the values computed as shown. The total accounts to 100% even with two shown filters and one hidden filter. That is fine for me. The date provides the quantity to alter. The Tray size provides the chassis list to change. Also, a third hidden filter will change the quantity. So, with all this filters I needed the total of cumulative total to 100%. That happens perfectly. Now. I have another scenario, where there are filters as shown in. Yes. when I try to add the same measure to the table in the bottom . It returns the following. But, I donot need this to happen. I expect the same value shown in the image 2 get populated in it. I need a measure that pulls the value from the image 2. or modification of the same measure so as to use in the image 4. This is my first requirement. Second, In image3, It shows me at selected date period and date and selected time bucket in graph, it has 16 chassis count and the same is listed in the below table. As per the image 2, there is a cumulative % listed. I need three individual measures listing 1. count of chassis matching the selected 16 in this case list with cumulative % <=0.8 2. count of chassis matching the selected 16 in this case list with cumulative % >0.8 & cumulative <=0.95 3. count of chassis matching the selected 16 in this case list with cumulative % >0.95 A seperate measure to replace in certain tables with the cumulative percentage based on the above three conditions to Fast, Medium & Rare respectively I will be so thankful. Thanks947Views0likes2Comments