User Profile
Stabben23
Helper I
Joined 7 years ago
User Widgets
Contributions
Total sum with different granularity
Hi, I want to Summerize a total value for Goal. Goal is a one time value on my machines. The model is connected With Machine (Maskin) field to Transaction table, no other table is connected. Value, date, machine field is from Transaction table, Goal from my Goal table. The sum in this case should be 520.8 instead of 130.20. I want this as a Dax measure.Solved2KViews0likes2CommentsRe: Flag in Calendar
Thanks for answer, if I use your Week Type = var _st = today() +-1*WEEKDAY(today() ,2)+1 var _end = today() + 7-1*WEEKDAY(today(),2) return Switch( True(), [Date] >= _st && [Date] <= _end ,0 , [Date] >= _st-7 && [Date] <= _end -7,1 ) and change place on 1 and 0 I get what I want for now as you see in my table. But Tomorrow it should change so All 1 gets 0 and All 0 get 1 because its Thuesday, will that work dynamic?1.8KViews0likes0CommentsFlag in Calendar
I want to build a flag (0,1) in my calendar based on, if it is current week and monday, then add 1 to previous week dates else 0. if it is current week and >Monday then add 1 to current week. So if today() = Current week and Monday all dates in previous week should be 1 in my flag. Tomorrow (thuesday) the flag change to 1 in current week dates, monday included, previous week dates will be 0. I have build variables that holds start and end dates for previous and current week in my DAX but cant solve it.Solved1.9KViews0likes3CommentsRe: Date Variable wrong format
I think I have to pologize, I work in Power Pivot, normally Power BI. And I now realize that these measure doesent act the same. All answers is probably correct. But in Power Pivot it fails when I put -7 in the formula. If I skip -7 it shows me a results, but I can not find a way to offset my enddate.820Views0likes0CommentsDate Variable wrong format
Hi, I want to create a variable in my DAX formula. Var = maxdate= max(DateTable[Date])-7, this should gives me the maxdate from selected slicer in YYYY-MM-DD format but it gives me a numeric value for the date. So when I try to filter DateTable <= maxdate it doesent filter. If I define the Variable like Date(2021-09-01) everything works fine.914Views0likes3CommentsRe: sum workdays with start and end date over weeks
Hi amitchandak If I remove Week from my table it shows correct sum, but I want to see it on Weeklevel. The problem is when start and end date overlap with 1 or many weeks, if so, it only shows workdays in week where startdate is.535Views0likes0Comments
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.