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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.