calender
9 TopicsIssue with Displaying All Days as Values from Calendar Table Using DAX Measure
Hi Everyone, I am facing an issue with the "Day" column from the calendar table. When using the following measure, only the day values are displayed from the column which as values from the fact table. However, I want all-day values to be shown from the column and I want the formula to show "zero" or leave the cell blank if there is no value for that day. Below is the measure I am using: DAX Formula: =DISTINCTCOUNT('_Orgination - Final_'[LoanId]) Note 1: There is a many-to-one relationship between the fact table and the calendar table, where the "many" side is the fact table and the "one" side is the calendar table. Note 2: The "Days[Row Label]" is from the calendar table. Note 3: I have tried several approaches but have not been able to achieve the desired result.Solved1.4KViews0likes7CommentsCant create relationship between Date and Calender[Date] .
now i have multiple tables CFS_Import , CFS_Export and CL now i have one more table name List , so i have created relationship between These three tables and the List table , now i when i create a new table named Calendar which contains only Date column , i want to link all the three table Date column with this column , so that when i drag this Calendar[Date] in any slicer it can act as a unified date slicer or when i drag it to x-axis of any line chart and add revenues of different table it will work 'fine , but i am only able to make relationship between one of the table and the rest two table's relationship turns inactive and when i try to turn it active it gives error for ambiguity.547Views0likes1CommentCumulative balance per customer
Hello, I have a table inclunding more then 10K rows and includinf the following columns: - customer (more then 200 customers) - invoice amount - invoice date - expected pay date of the invoice I want to calculate the cumulative balance of every customer over time, based on the invoice date en expected payment date of the invoice, so I can measure the exposure over time per customer. therefore, I created a Calender table for 3 years to measure the Exposure per customer. I was able to include 3 columns in this Calender table: - total invoice amount per date - total expected payment per date - total Outstanding (which is the total invoice amount - expected payment per date) Now I want to make a measure which calculatea the cumulative amount and make it possible to filter per customer. However, it's not possible for me to create a measure to calculate the cumulative measure per customer. Anyone who can help me? Is it because I've two different tables (1 with invoices per customer and 1 Calender table)? thank you in advance535Views0likes1CommentSelectedValue and Inactive Relationship
Hi, I'm current using the below dax formula as a dynamic title field for a visual. Slide 12 Title = "Example Text - "&SELECTEDVALUE(Calendar_Table[Quarter Name]) &" " &SELECTEDVALUE(Calendar_Table[Year])&" - Example Text" The idea is that when the visual is filtered for a specific quarter and year then it will return the following Example Text - Quarter 3 2022 - Example Text However recently I've added an inactive relationship from a date field in a fact table to the main calendar table. Following this addition whenever my visual is filtered for the current quarter it does not return the Quarter name. But when it is filtered for any other quarter it works correctly. Note - the new date field (frm fact table) that I've connected to the calendar table does have dates that are outside of the calendar table's dates. Note 2 - When the new date field is connected I can see a blank option appears when filtering the visual (which is not there without the inactive relationship). And this blank option only appears when filtering for the current quarter. Note 3 - I can make the formula work if I add two filters (one filtered for the current quarter - the other filtering out blank values). Any Other ideas why that might be? Thanks,589Views0likes1CommentCalculate average sales for calendar month
Here we have found a simple way to find out the average sales for the calender month. Calender Qunatity Sum = Var startMonth = Date(Year(Today()),1,1) Var EndMonth = EOMONTH ( TODAY (),-1) Return Calculate(SUMX(Table Name,Qunatiy Column), Filter(All(Table Name), 'Date Table >= startMonth && 'Date Table<= EndMonth ) ) Calender Quantity Average = Var Month = MONTH(TODAY()) - 1 return divide(Calender Qunatity Sum,Month,0)556Views1like1Commentsort weeks by dates in the calendar
hello , im trying to create a column that sorts weeks according to dates rather than week name. ex. w1 2022 would be : january1-2022 till january7-2022 w2 would be be january8-2022 till january14-2022 w3 woud be january15-2022 till january21-2022 where W1 should always be first 7 days of the begining of the year i was trying to use weeknum function but its sorting weeks according to weekdays from Sunday till SaturdaySolved1.4KViews0likes3CommentsDax for creating date column for specific dates.
Hello, Please anyone can tell me how can i create the dax column for date table as it will automatically add 1st date of every month like eg:- Year & Month Identifier = {"01-January-2018","01-February-2018","01-March-2018","01-April-2018","01-May-2018","01-June-2018","01-July-2018","01-August-2018","01-September-2018","01-October-2018","01-November-2018","01-December-2018","01-January-2019","01-February-2019","01-March-2019","01-April-2019","01-May-2019","01-June-2019","01-July-2019","01-August-2019","01-September-2019","01-October-2019","01-November-2019","01-December-2019","01-January-2020","01-February-2020","01-March-2020","01-April-2020","01-May-2020","01-June-2020","01-July-2020","01-August-2020","01-September-2020","01-October-2020","01-November-2020","01-December-2020","01-January-2021","01-February-2021","01-March-2021","01-April-2021","01-May-2021","01-June-2021","01-July-2021","01-August-2021","01-September-2021","01-October-2021","01-November-2021","01-December-2021"} i don't want to manually enter the dates.1.5KViews0likes5CommentsError in calculation when create relationship with calendar table
Hi! I'm trying to create a relationship between one table (Event date column) to another table (Calendar table, Dates column). But when I create a relationship btw them, the column measure becomes repeated same values (100). I do check the data type, and both are the same. Any idea or suggestion on how to fix it? This is what I get after active their relationship;697Views0likes1Comment