year
10 TopicsDynamic Year Measure
Jolly Day, I currently have my visual set to just give me year 2021. I am wanting it to automatically update go two years back so I need it set to year 2022 when we begin year 2024. Is there a way to accomplish this? I created a year column that just parsed the year from my date so we also have the full date to work with. Any help with this would be greatly appreciated! Thanks in advance, Idon'tquitegotthepowerBISolved3.3KViews0likes3CommentsHow to make a graph understand that the week number is next year (to make the date sort right)?
Hi, I have this data: And I have made this graph - which shows completed sales and expected future sales. This works great for when I use the "Date" field, but I want it on week level, and when I do that it looks strange (see picture below), because Power BI doesn't understand that week 1 is next year, and hence is after week 52. Is there a way to make it understand that week 1 is next year? And hence that the graph looks more similar to the one with "Date"? Thanks in advance, highly appreciate it 🙂Solved3.3KViews0likes11CommentsFilter month year column to exclude future dates from today
I have a dates key table that runs from Jan 2018 - Jan 2021. I have a month year column (Text Format): Month Year = FORMAT('DimDate'[DateS],"MMM YYYY") However it pulls in all dates in the dates key range: Is there a way to exclude future dates from: FORMAT('DimDate'[DateS],"MMM YYYY"),<=TODAY() Thanks in advanceSolved1.4KViews0likes1CommentSort Month Year Column Dax
I have a custom column: Month Year = FORMAT('DimDate'[Date],"MMM YYYY") Is there a way to sort this column other than the "Sort by Column" tab in the ribbon? i.e. is there a DAX formula I can use like I would for weekday Day of the Week Sort = WEEKDAY([DATE_START],2)Solved987Views0likes1CommentEOMONTH working days calculation
I have a measure to subtract the total number of days in a month e.g. 31 - absence. Measure = VAR _lastday = DAY ( EOMONTH ( DATE ( LEFT ( MAX ( 'DimDate'[Month Year] ), 4 ), VALUE ( RIGHT ( MAX ( 'DimDate'[Month Year] ), 2 ) ), 1 ), 0 ) ) RETURN IF ( ISBLANK ( [AbsentByDay] ), BLANK (), _lastday ) - [AbsentByDay] Is there a way to only include working days in this calculation e.g. 22 working days in month - absence? e.g. NOT WEEKDAY( 'DimDate'[Date] ) IN { 1,7 } File attached: https://www.dropbox.com/s/3oa7bx1rki1sl5j/Sample1%28updated%29.pbix?dl=0Solved2KViews0likes4CommentsUK Fiscal Year Column
Hi, I am trying to create a Date format Table which has a column for UK fiscal year based on another column date. I have managed to do from 01 April - 31 March using month calcs but need the fiscal year dates to be 06 Apr - 05 Apr in acordance with UK fiscal year. The formula i have at the moment is as follows: Fiscal Year = IF(MONTH(Date_Reference_Table[Date])>3,YEAR(Date_Reference_Table[Date])&"-"&YEAR(Date_Reference_Table[Date])+1,YEAR(Date_Reference_Table[Date])-1&"-"&YEAR(Date_Reference_Table[Date]))1.8KViews0likes1CommentMeasure current year (context) minus last year KPI
Hello, I have a years dimension table and I want to calculate a KPI wich is the difference between the value of an another KPI value in a year minus its value the year before: KPI2 = KPI1(YearN) - KPI(YearN-1) Any help how to do it? Thank youSolved1.3KViews0likes2CommentsFact table, two date column -> DAX show only data where YEAR(date1) = YEAR(date2)
Hi I have sales data which has two date columns (let's call them date1 and date2). I would like to only show data where the year of these columns match -> example: if date1 = 1.12.2019 and date2 = 1.1.2020 -> exclude row. Can you help me finalize this?Solved546Views0likes1CommentBar chart by quarter including last quarter from previous year
Hi there, I currently have a report that shows me a selected year's metrics by quarter on a bar chart: However, I would like this view to also show me a bar for the last quarter of the previous year for comparison, that would still show up even if I have a page level filter for Year. For example: if I filter my page to the year of 2018, I still want to see the last quarter of 2017 on my bar chart, to the left of the 2018 quarters bars, ideally looking something like this: Is this possible? How can I achieve this or something similar that serves the same purpose? Thanks in advance!Solved7.5KViews0likes5CommentsForecast Cancellations by Age to chart by year - DAX Measure
I want to write a DAX measure that I can chart to show how many of our customers are likely to cancel over time based on their age. Historically there are key ages when our customers are more likely to cancel. I have two tables: A table showing the PAST customers (FormerClientTable) and their age when they cancelled, and a table showing CURRENT customers and their current age. I know that customers are most likely to cancel at age 24, 30, 65 and 75 and, using my FormerClientTable table I am able to calculate the likelihood of cancellation for any given age. PercentageLikelihood = SUMMARIZE('FormerClientTable','FormerClientTable'[Age At Cancellation],"%",COUNTROWS('FormerClientTable')/COUNTROWS(All('FormerClientTable'))) I can figure out the answer for a SPECIFIC year, but what I want to do is create a measure that will do this for any year that is shown on the X axis of my chart. Does anyone have insight or suggestions about how to do this? ThanksSolved1.3KViews0likes2Comments