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.
I am trying to execute the following DAX but keep getting multiple columns can't be converted to scalar value:
Current Closing Period = IF('Fiscal Year Period Closing Date'[Closing Date Greater Than Today] = "Yes" && MINX('Fiscal Year Period Closing Date', 'Fiscal Year Period Closing Date'[Closing Date Greater Than Today] = "Yes"), FILTER('Fiscal Year Period Closing Date','Fiscal Year Period Closing Date'[Days to Closing] = ""))
Should I create a separate DAX formula for the second half then combine both? Sorry am new so not sure what to do. Thank you! 🙂
Hi @theglamgamer ,
Could you please clarify the expected result? From the formula you provided, FILTER function will return a table, seems you want to get a table if the conditions are met, so do you want to create a new table? Besides, the code in red box seems wrong, I guess what you expect is to determin weather the min [Closing Date Greater Than Today] is "Yes". If so, "Yes" should be outside of the bracket.
Look forward to your reply!
Best regards,
Community Support Team_yanjiang
@theglamgamer , Not very clear.
You can have measure like
Closing GT Today =
IF(MIN('Fiscal Year Period Closing Date'[Closing Date]) > TODAY(), "Yes", "No")
Then you can have a measure like
Current Close Period =
IF(
[Closing GT Today] = "Yes" &&
HASONEVALUE('Fiscal Year Period Closing Date'[Days to Closing]),
[Measure],
BLANK()
)
User | Count |
---|---|
73 | |
70 | |
38 | |
25 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
43 | |
42 |