heed help
3 Topicsurgent help needed
This is the daily data at the port, but since the dates are not continuous, I created a separate dates table. I need help writing a DAX measure to calculate the difference between the Max ETA Date and the Predicted Delivery Date for each market. If the difference exceeds the capacity, the delivery should be scheduled for the next day. The expression will be: (Max ETA Date - Predicted Delivery Date). If the difference exceeds the available capacity, the remaining quantity should be carried over to the next day, and this cycle should continue until all deliveries are scheduled. Market Max of eta Predicted_Delivery_Date Max of eta Capacity Japan 01-02-2024' 04-01-1900 12-10-2024 2 Japan 01-02-2024' 04-01-1900 10-03-2025 2 Philippines 01-02-2024' 04-01-1900 10-04-2025 9 Vietnam 01-02-2024' 04-01-1900 04-10-2024 2 Taiwan 01-02-2024' 04-01-1900 19-04-2025 6 Thailand 01-02-2024' 04-01-1900 01-03-2025 7 Australia 01-02-2024' 04-01-1900 08-02-2025 6 China 01-02-2024' 04-01-1900 30-03-2025 8 Shenzhen 01-02-2024' 04-01-1900 23-03-2025 4 Korea 01-02-2024' 04-01-1900 29-11-2024 10 Vietnam 01-02-2024' 04-01-1900 21-03-2025 2 China 01-02-2024' 04-01-1900 21-03-2025 8 Japan 02-02-2024 04-01-1900 21-03-2025 2 Japan 03-02-2024 04-01-1900 21-03-2025 2 Philippines 04-02-2024 04-01-1900 21-03-2025 9 Vietnam 05-02-2024 04-01-1900 21-03-2025 2 Taiwan 02-02-2024 04-01-1900 04-04-2025 6 Thailand 03-02-2024 04-01-1900 04-04-2025 7 Australia 04-02-2024 04-01-1900 04-04-2025 6 China 05-02-2024 04-01-1900 30-03-2025 8 Shenzhen 06-02-2024 04-01-1900 04-04-2025 4 Korea 07-02-2024 04-01-1900 03-05-2025 10 Vietnam 08-02-2024 04-01-1900 21-08-2024 2 China 09-02-2024 04-01-1900 21-08-2024 8Solved1KViews0likes5CommentsIs there any way to get which column is selected in a table for sorting
Say I have a table like below. Open Job Tables Currently sorted by Job Name Date Job (selected to sort by) Status name 10 7/1/22 dax measure open Name 2 3/1/22 visual formating closed and I would like to create a measure that would return the Table name and which column is selected to sort the table. I know that I can use SelectedValue to return what is selected in a slicer. Is there a way to find out what column is selected in a table for sorting?722Views0likes2CommentsPercentage between two columns
Good day, I have two tables, related to each other by fist column (name of the source file). I'm looking for measure to show me how many "RISK and HIGH RISK" checks were done comparing to "none or standard". Result should be in procents and filtered by year (2021) SOURSE FILE NAME REASON FOR CHECK SOURSE FILE NAME Date of Check 1 none 1 2020 2 risk 2 2020 3 high risk 3 2021 4 none 4 2021 5 standard 5 2021 6 risk 6 2021 For example in 2021 there were 4 checks where two of these were (Risk/High Risk) - final result is 50% in 2021. Thnaks Aleks600Views0likes1Comment