Forum Discussion
Dax Expression
- Anonymous4 years ago
Hi Anonymous ,
Thanks For the response.
This solution meets 90% and only issue was i dont want to sum up Quantity.
ie expected result shown below
Month Count
Jan 1000
Feb 1000
Mar 1000
Apr 500
May 500
Jun 500
The above one is based on the file you shared
- Anonymous4 years ago
Hi Anonymous
Which code did you use in this screenshot? I think you didn't build a relatisonship in above sample. I think you want yo show the QTY at the last day instead sum of the QTY of the whole month. Could you tell me why Jan, Feb and Mar show 2000 in your screenshot? Please show me the result you want by screenshot.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Agreed with you,adding relation will give same result.
I have one more concern ,i want see visual based on some filters in sample table(Date filter working and others not).
Currently its not working,currently i have filtered based on QTY.Like this in my table i have customer names,please help to fix this
Hi Anonymous
Which code did you use in this screenshot? I think you didn't build a relatisonship in above sample. I think you want yo show the QTY at the last day instead sum of the QTY of the whole month. Could you tell me why Jan, Feb and Mar show 2000 in your screenshot? Please show me the result you want by screenshot.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Hi Anonymous ,
Its by my mistake,i added a duplicate row as same as original data for testing .That is the reason its showing doubled amount.
As you said i want the data as QTY at last day of each month.From your code am getting that result but the issue was i want to filter it by some colums usng slicers.
I had attache screen shot of my actual data and the code used.
1.This is the report am developing,here i want to filter values by column in Data table.
But its not considering my filters
2.Meassure i had used given below
Latest QTY =VAR _LatestNotBlankDate =MAXX (FILTER (ALL ( 'Data' ),'Data'[SIM Summary Snapshot: Created Date] <= MAX ( 'Date'[Last Date each Month] )),Data[SIM Summary Snapshot: Created Date])VAR _LatestQTY =CALCULATE (SUM ( Data[SIM Count] ),FILTER (ALL( Data), Data[SIM Summary Snapshot: Created Date] = _LatestNotBlankDate ))RETURN_LatestQTY3.Data in the table