Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello i am trying to put some code in to check
if MAX date from date table = Today(),
AND Group = "Mail"
Then
"Data Available"
Else
Data Not Available
any ideas?
Solved! Go to Solution.
Hi,
there's some information missing (e.g. where is the Group-Column and how is the table connected to the date table?) but assuming there's a fact table with a Date which is linked to the Date column in your Date table and a Column Group which can have the value "Mail" this should do the trick. You can add it to a card for example.
VAR isAvailable =
CALCULATE(
MAX(dateTable[Date]),
yourOtherTable[Group] = "Mail"
) = TODAY()
RETURN
IF(isAvailable, "Data Available", "Data Not Available")
Hi,
there's some information missing (e.g. where is the Group-Column and how is the table connected to the date table?) but assuming there's a fact table with a Date which is linked to the Date column in your Date table and a Column Group which can have the value "Mail" this should do the trick. You can add it to a card for example.
VAR isAvailable =
CALCULATE(
MAX(dateTable[Date]),
yourOtherTable[Group] = "Mail"
) = TODAY()
RETURN
IF(isAvailable, "Data Available", "Data Not Available")
This don't seem to work, the data is all in one table
Mail isAvailable =
VAR isAvailable =
CALCULATE(
MAX('FACT - TEST'[Date]),
'FACT - TEST'[Grouping] = "Mail Opening"
) = TODAY()
RETURN
IF(isAvailable, "Data Available", "Data Not Available")
Do you have any more infos? What does the measure return?
Hi @NewbieJono
Try
if(MAX('table'[date] = Today() && 'table'[Group] = "Mail","Data Available","Data Not Available")
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
on this after the && it will not let me select a table here, only measures
if(MAX('table'[date] = Today() && 'table'[Group] = "Mail","Data Available","Data Not Available")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
75 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |