Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, I am new to this site and also a beginner PBI user.
I have a problem using Lookupvalue and Firtnonblank, I hope someone can help me figure out.
I used SubDiv = Calculate(Firstnonblank(Ewswb(Subdiv),1),
Filter(Ewswb, Ewswb(Diesicom)=Ref100(Diesicom))
Out of 6700 products to lookup, there are 700 products which are empty/blanks. I double check my source data, and confirmed all informations are available. I asked my friend for help but he also cannot figure it out why some of the rows are blank and some has data.
I hope someone can help me, as I am stressed out already figuring what is the problem.
TIA.
I'm not sure exactly, but the code above isn't valid at all. You have no columns. Paste your code in DAX Formatter by SQLBI and copy the results back here.
But the FIRSTNONBLANK() function, what is the ,1 doing? You cannot evaluate 1 and get anything but 1. FIRSTNONBLANK() should be:
FIRSTNONBLANK(Table[Field], [Measure or Expression]), so
First Date =
FIRSTNONBLANK(
'Date'[Date],
CALCULATE(
SUMX(
Sales,
Sales[Price] * Sales[Quantity]
)
)
)
Will return the first date in your model for which there are sales.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUser | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |