User Profile
jfranco
Frequent Visitor
Joined 2 years ago
User Widgets
Contributions
Re: DAX Calculated Column - Value from a same date previous year
Thank you Anonymous Thank you! Almost but not quite. I ended up creating two columns M = Month(Table[Date]) PY = Year(Table[Date]) and then using a variation of your DAX code : CALCULATE (SUM([Production)]), FILTER(ALL(Table), Table[ID]=EARLIER(Table[ID]) && Table[Location] = EARLIER(Table[Location]) && Month(Table[Date]) = Earlier(Table[M]) && Year(Table[Date]) = EARLIER(Table[PY]) ))) Gracias Roger1.5KViews0likes0CommentsRe: DAX Calculated Column - Value from a same date previous year
Something else I've tried: Added Two Columns: LYM = MONTH (DATE) LY = YEAR (DATE) -1 Then tried : CALCULATE (SUM([Production]), MONTH([Date]) = [LYM], year([Date]) = [LY])) But still get blanks...any idea what I'm doing wrong?1.5KViews0likes0CommentsRe: DAX Calculated Column - Value from a same date previous year
Thanks belvoir99 I appreciate the formula to get the calculation for the same date last year, but what I am trying to accomplish is Return the Production (or sales or any other variable) for ID = A (or B or C), and Location = North (or South) for DATE last year (so if Jan 15 2024 then Jan 15 2023)1.6KViews0likes0CommentsDAX Calculated Column - Value from a same date previous year
Hello and Good Morning. I have another question from the knowledge base. I have the following table: ID Location Date Production A North 01/01/2024 10 B North 01/01/2024 9 C North 01/01/2024 11 A South 01/01/2024 20 B South 01/01/2024 18 C South 01/01/2024 22 I'm trying to create a calculated column, that returns the Production Value for the same period (month) the previous year. Example for A : North : 01/01/2024 return the production for A : North : 01/01/2023 and so on Thanks in advance RogerSolved1.6KViews0likes6CommentsMatrix : Keep Rows as Averages...add only Grand Total Sum of the Averages
Hello. Another request from the knowledge base. I have a Matrix Visualization as below: The rows are unit averages, and I would like to add a Grand Total of these yearly averages. Adding a total, does not do it, as it sums the total of every daily row in the data table. Thanks in advance RogerSolved635Views0likes3CommentsUser input to drive column result
Hello. Looking for advice/help from the knowledge base. I am trying to create a measure that affects a column, based on user (slicer) input. The columns are as follows: I have set up "single" select slicers for Producer, Location & Product as well as a slicer for a step change (from -20% to 20%) using Step_Change = GENERATESERIES(-.20, .20, 0.005) My goal is to change the volume by the selected percentage of a specific selection of Producer/Location/Product. But not affect all volumes just the ones that meet such criteria. I have been using : IF (selectedvalue(customer)= MAX(customer(from a column)) && selectedvalue(location)= MAX(location(from a column), MAX(volume(from a column))*(1+selectedvalue(%_Change)), MAX(volume(from a column)) But it either changes all the volumes or none (depending on the slicer connections/interactions). The link to sample pbix, is Volume Change PBIXSolved584Views0likes2CommentsRe: DAX Measure : If(selectedvalue="value from column", then...
Thanks PhilipTreacy I can't upload my model, but I did create a simpler one with 'fake/dummy' variables (attached link) : Volumes PBIX as you can see the measure does not change any values. BTW you and this community are awesome, this is a world I want to live in. Thanks942Views0likes0Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.