comparison
6 TopicsComparing values with the same date range
Hi Community I would like to get some help with a DAX measure. I want to have a bar chart like shown in the snippet, where i compare values from previous years, but my struggle is to have the same date range as my current year (in this case 2024/25) so in a month slicer i have selected september. this means that i have data from september 1st til september 17th. But my previous years shows the full month of september. How can i make sure it always follows the same range? how would a DAX measure look like to achieve this?Solved1.3KViews2likes3CommentsCompare data/calculations for a chosen month with same month last year
Hello there TLDR: Based on a chosen month selected with a slicer (custom "Timeline 2.4" slicer) to compare numbers with exact same month last year. So lets say the user selects April 2023, I also want to show data for April 2022, especially the difference in %. I've been searching and searching and tried different solutions without luck. So I have some electricity sensor data for lets say 3 years based upon this calculated measure: Calculated_consumption= (CALCULATE(SUM(Measurements[numericValue]), Measurements[field] = "consumption", Measurements[deviceid] = "X") / 1000). There are timestamp, date, month-year etc columns. I've tried with all columns refering to some kind of "date" or "timestamp"... When the user selects for example April 2023 the dashboards shows electricity consumption for that given month. But I also want a box showing the change from April 2022. So far I've only managed to create tables and graphs that can compare to previous month.. The solutions that didn't work for me: - X = CALCULATE(([Calculated_consumption]), DATEADD(Measurements[MonthYear],-1, YEAR)) - Y = CALCULATE([Calculated_consumption], SAMEPERIODLASTYEAR(Measurements[MonthYear])) - Z = CALCULATE([Calculated_consumption], PARALLELPERIOD(Measurements[MonthYear],-12,MONTH)) Thanks in advance825Views0likes2CommentsDAX Comparing counts from two different snapshots
Hi all, This should be quite straightforward, but I can't seem to be able to debug it yet... I have a series of data called 'Opportunities' that are recorded in an excel spreadsheet. Opportunities Opportunity 1 Opportunity 2 Opportunity 3 Opportunity 4 ... Every week, we capture a snapshot of the list and assign a date in the 'Date Captured' column. Date Captured Opportunities Projects 10/02/2022 Opportunity 1 Opportunity 10/02/2022 Opportunity 2 Opportunity 10/02/2022 Opportunity 3 Opportunity 17/02/2022 Opportunity 1 Opportunity 17/02/2022 Opportunity 2 Opportunity 17/02/2022 Opportunity 3 Opportunity 17/02/2022 Opportunity 4 Opportunity 24/02/2022 Opportunity 1 Opportunity 24/02/2022 Opportunity 2 Opportunity 24/02/2022 Opportunity 3 Opportunity 24/02/2022 Opportunity 4 Opportunity 24/02/2022 Opportunity 5 Opportunity What I would like to have is a summary table with the latest number of opportunities (5), a dynamic table that shows the difference between the current/latest number of Opportunities and a previous date (selected using a slicer of the 'Date Captured'), and a table that shows the number of Opps for that previous date (3). Latest Date Count 24/02/2022 5 Difference 2 Earlier Date Count 10/02/2022 3 I have written the following codes, but I keep getting 0s in the middle table (difference). Any help? Step 1: Opportunties_Count = CALCULATE (COUNT('Table'[Projects]), FILTER('Table',[Projects]="Opportunity")) Step 2: LatestDateCount = VAR LatestDate= MAX ('Table'[Date Captured] ) VAR LatestDateCount= CALCULATE ( [Opportunities_Count],'Table'[Date Captured] = LatestDate) RETURN CALCULATE(LatestDateCount) Step 3: EarlierDateCount = VAR EarlierDate= SELECTEDVALUE('Table'[Date Captured] ) VAR EarlierDateCount= CALCULATE ( [Opportunities_Count],'Table'[Date Captured] = EarlierDate) RETURN CALCULATE(EarlierDateCount) Step 4: Difference = LatestDateCount - EarlierDateCount Please note that I do get the right values in the top and bottom tables. The only one that doesn't seem to work is the Difference table.Solved2KViews0likes4CommentsCompare values from 2 visualized tables in powerbi dashboard (NOT BACK END TABLES COMPARISON)
Hi there, I have a challenge for the expert powerbi community!! Within my company we are currently looking to compare two table values in the powerbi dashboard (FRONTEND) to return an marker wheter the individual green value (which is filtered by "studiegroep", "periode" & "voornaam") meets the groupbenchmark pink value (filtered by :"benchmarkyear" but with changing data based on a backend division of data). Using PowerQuery within the tables is not possible given the pink data is changing when using diffent filters (so the pink data is not directly from another back-end table but is only generated in the dashboard by using measures & filters in the dashboard. Normally in excell you would simply make a calculation based on the respective cells (see example below) and add a conditional formatting, see example in excell. However, I am looking for a similar solution within the powerbi dashboard. Is this possible in PowerBi? would love to hear from anyone who can offer help!1.3KViews0likes2CommentsPrevious period measure (no date)
Hi community, I would like to create one simple measure for previous period revenue without using "date" field. So I have created an index for each update I will do (every week). I will use a slicer on the index/week, so if i select week 2, prior should show week 1 figures. I have several rows so I am using the following formula to calculate "Sales Period" : Sales Period = SUMX(FILTER(Sheet1, MAX(Sheet1[index])),Sheet1[sales]) How can we calculate "Sales Prior" ? I've tried the following DAX but it's not working :S Sales Prior = SUMX(FILTER(Sheet1, MAX(Sheet1[index])-1),Sheet1[sales]) Index Week Sales Sales Period Sales Prior 1 week 1 50 1 week 1 100 2 week 2 20 20 150 3 week 3 30 30 20 Thank you in advance for any suggestions/advices.Solved3.6KViews0likes4CommentsBar 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.5KViews0likes5Comments