Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hasharma19
Helper II
Helper II

MaxDate Issue Calculated Column

Hell All,

I have dimdate table in my power bi structure which date calculated on basis of other table min and max date column.

Now I am trying to get the Max data using calculated column with expression as" DimDate[Date]<=MAX(Delivery_Exce[ERDF NC Date])", but it is always giving me true as output instead of true and false whereever the condition is not matching.

Please help me to get the correct calculation.

 

 

 

hasharma19_0-1685128368479.png

hasharma19_2-1685128590472.png

 

 

1 ACCEPTED SOLUTION

Is this what you are looking for?

Screen Capture #1180.pngScreen Capture #1181.png

View solution in original post

12 REPLIES 12
Ahmedx
Super User
Super User

could you share your pbix-file? Or create an example file which reproduces your issue?

@Ahmedx @Ahmedx Hi,

Since there is no option available/showing to attached the file.

i have created a table for ref. I have raw data file wherein three dates columns are available(dates are from 01/01/2021 to 20/05/2023).
I have creaated new date table -Calender[min(Raw_dataERDF_NC_Date),max(Raw_dataERDF_NC_Date)

Now have added calculated column in dimdate table as MaxDate- DimDate[Date]<=MAX(Raw_data[ERDF_NC_Date]). 

The output of max date is showing all value is true, whereas is should true for matched and false for unmatched as per DAX.

 

 

Raw_Data   
SidStartdateEDRF_NC_DateEDRF_SC_Date
111111101-01-202103-01-202106-01-2021
111111202-01-202104-01-202107-01-2021
111111303-01-202105-01-202108-01-2021
111111404-01-202106-01-202109-01-2021
111111501-01-202203-01-202206-01-2022
111111602-01-202204-01-202207-01-2022
111111703-01-202205-01-202208-01-2022
111111804-01-202206-01-202209-01-2022
111111901-01-202303-01-202306-01-2023
111112002-01-202304-01-202307-01-2023
111112103-01-202305-01-202308-01-2023
111112204-01-202306-01-202309-01-2023

you can upload the file to any cloud!

Do you have an established relationship between the date table and Raw_data?

 

Is this what you are looking for?

Screen Capture #1180.pngScreen Capture #1181.png

@Ahmedx  Yes, and if you check the trend line graph, the future % is showing 0.00% till week 52-2023

I want future should be blank and when the data entered for that week so the % should show like earlier week is showing.

pls try this

Screen Capture #1182.pngScreen Capture #1183.png

@Ahmedx 
Thanks- The issue is now, when i am selection location from slicer whereever the performance 100%(which means 0.00% error in any particular week) then the trend line is missing.
i am expecting trend line show the actul performace which means no missing trend line in any week(if performace is 0.61%  or 0.00% then the trend link show accrsongly instead of missing link between weeks)

hasharma19_0-1685293247604.png

 

@Ahmedx Pls help in this case

you have everything correct, but where should be False?

you write what you want to receive. maybe you need a max on level year ?

Screen Capture #1179.png

@Ahmedx Yes the relationship is there,
I can upload on ondrive(if you can share your email id in DM)

hasharma19
Helper II
Helper II

@johnt75  ,@Ahmedx 

-Can you please help in this case

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.