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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
tangutoori
Helper III
Helper III

Non Blank value

 

Dear Team,

 

i need to get non blank value in my result.
if TOTAL FSC Current is blank for max date and maximun serial number, then consider previous record.
Target FSC at MAX Date2 =

 

Var max_date = Max(Data2[Actual Changed_Date])
Var max_ = CALCULATE(sum(Data2[Target FSC Current]),
    ALLEXCEPT(Data2,Data2[latest PNM C.C]),
    Data2[Actual Changed_Date]= max_date,
    Data2[SerialNumber] = max(Data2[SerialNumber]))
 return max_
 
we can keep atleast action <> QTY Change also .
 

 

tangutoori_2-1681404903001.png

 

tangutoori_3-1681404963314.png

 
1 ACCEPTED SOLUTION
tangutoori
Helper III
Helper III

Target FSC at MAX date NoBlank =
 CALCULATE(MAX('Test Data_2'[Target FSC Current]), filter('Test Data_2',[Actual Changed_Date] =
 maxx(FILTER('Test Data_2',[Target FSC Current]<> blank()),[Actual Changed_Date])))

View solution in original post

1 REPLY 1
tangutoori
Helper III
Helper III

Target FSC at MAX date NoBlank =
 CALCULATE(MAX('Test Data_2'[Target FSC Current]), filter('Test Data_2',[Actual Changed_Date] =
 maxx(FILTER('Test Data_2',[Target FSC Current]<> blank()),[Actual Changed_Date])))

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.