User Profile
lisapduan
Frequent Visitor
Joined 1 year ago
User Widgets
Contributions
Re: Issue with calculated date range
This issue has not been resolved and put on the back burner due to other priorities. The issue seems to be more of a realationship issue. When we were backing tracking through the set up we noticed when 1 table was removed, what we were wanting to do worked. It is a critical table though so it has to be there. We are going to rebuild the model from scratch when we have time. The original was built by by someone no longer here.1KViews0likes1Comment- 1.1KViews0likes1Comment
Issue with calculated date range
I have a report I'm trying to modify. There is a memo field on the report that needs to contain a date range based on what dates have been entered into the date slicer. The correct range of dates are pulling but it is listing individuial dates not the date range. For the below I need date range to show as 3/1/2025-3/31/2025 instead of 3/1/2025 - 3/1/2025 or 3/12/2025-3/12/2025. I'm using Min and Max to get start date and end date for the Memo field. I.e. ( Start Date = CALCULATE( MIN(XTable[Calculated date]), ALLSELECTED(XTable[Calculated date]) ) Any suggestions?Solved1.2KViews0likes10CommentsHelp with a Switch formula
I am trying to add a column to a report. The main data for the column is a table called Customers. I have another table called Shifts. I need all occurrances of the User field in Shifts to populate on the report. The relationship between these tables is Customers.NetSuiteSiteId = Shifts.uid. There are several instances where Customers.id does not have correlating data. I want to hard code some values based information found in Shifts.uid. This is the formula I am using and below that the error message I'm receiving. I'm not sure what I am doing wrong. Both of the Customers.id & Shifts.uid are numeric fields. TempDept = IF( ISBLANK(Customers[id]), VAR ShiftUID = CALCULATE( MAX(Shifts[uid]), FILTER( Shifts, VALUE(Shifts[uid]) = VALUE(Customers[NetSuiteSiteID]) ) ) RETURN SWITCH( TRUE(), ShiftUID IN {26, 261, 384}, 9255, ShiftUID = 88, 9258, ShiftUID = 259, 22434, ShiftUID = 350, 15994, ShiftUID = 352, 214464, ShiftUID = 356, 9259, ShiftUID = 403, 214466, Customers[id] ), Customers[id] ) Error mussage is : Function 'CONTAINSROW' does not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values. I started with this formula and received an error message of : "A single value for column 'uid' in table 'Celayix_Shifts' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result." TempDept = IF( ISBLANK(NS_Customer[id]), SWITCH( TRUE(), Celayix_Shifts[uid] IN {26, 261, 384}, 9255, Celayix_Shifts[uid] = 88, 9258, Celayix_Shifts[uid] = 259, 22434, Celayix_Shifts[uid] = 350, 15994, Celayix_Shifts[uid] = 352, 214464, Celayix_Shifts[uid] = 356, 9259, Celayix_Shifts[uid] = 403, 214466, NS_Customer[id] ), NS_Customer[id] )Solved491Views0likes2Comments
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.