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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
sam021083
Frequent Visitor

Calculated column help needed

Hello all,

 

I am facing an issue to get the required column as shown using DAX.

 

Capture.JPGPlease help how to get the required column in DAX.

 

Thanks,

Sam

1 ACCEPTED SOLUTION

what I understood from all this is, pick first value from FoecastedAllocation column where the WeekStartingDate is same as MonthlyDate
so here it is,
= IF(Data[WeekStartingDate]=Data[MonthlyDate],FIRSTNONBLANK(Data[FoecastedAllocation],Data[WeekStartingDate]=Data[MonthlyDate]),BLANK())

View solution in original post

8 REPLIES 8
Tatynout
Frequent Visitor

hello @sam021083,

 

Can you please give more details about what is it you trying to do?

 

Regards,

Tatiana Nouteping

iamprajot
Responsive Resident
Responsive Resident

I do not understand what needs to be done here.
On what basis are you trying to get the required value, explain your issue properly.

Hi,

 

I have first 3 columnsCapture.JPG in my table. I need to have a calculated column in the format of required column mentioned in the picture using DAX.

 

Thanks

still don't get it, on what basis is the fourth column - why does it contains values for few rows and why other empty.?

Hi,

 

I need to show the 4th column values in a graph without summing up all the data for 04/23/2018. I just need to have the first value 80 for the date 04/23/2018 and I need to get the 100 for the date 5/21/2018 and so on based on MonthlyDate column. 

 

Please let me know if you need any more info.

 

Thanks.

what I understood from all this is, pick first value from FoecastedAllocation column where the WeekStartingDate is same as MonthlyDate
so here it is,
= IF(Data[WeekStartingDate]=Data[MonthlyDate],FIRSTNONBLANK(Data[FoecastedAllocation],Data[WeekStartingDate]=Data[MonthlyDate]),BLANK())

Thank you very much. It worked perfectly.

Hit Thumbs Up is the solution worked.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.