Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello all!
I have created a measure that I use as an "Alert message texte" that I put into a "card" visual.
What it does? It should display the card (with its measure) if the selected country is ONE of the selected countries and the date is in the date range selected (seperate date slicer - calander date table of course).
I have a market slicer (for example: Italy, France, Germany)
For each countries I have a different alert message for different dates, they should be displayed if the selected date is anterior to:
France = 2021/02/10
Italy = 2021/06/15
Germany = 2021/05/20
Data alert_France =
Var Marketselected = SELECTEDVALUE('Regions&Markets'[UA - Market (D2C)])
return
IF(Marketselected="France | D2C",
IF(
FIRSTDATE(DimDate[Date]) < DATE(2021,02,10),
"France: 17.03.2021"
,""
),"")
Solved! Go to Solution.
Try this solution:
1. Sample data:
2. Create measure:
Data Alert =
VAR vFirstDate =
FIRSTDATE ( DimDate[Date] )
VAR vResult =
CONCATENATEX (
FactTable,
IF (
vFirstDate < FactTable[Alert Date],
FactTable[Market] & ": " & FactTable[Alert Message]
),
" | "
)
RETURN
vResult
3. Create visuals:
------------------------------------------------------
Proud to be a Super User!
Try this solution:
1. Sample data:
2. Create measure:
Data Alert =
VAR vFirstDate =
FIRSTDATE ( DimDate[Date] )
VAR vResult =
CONCATENATEX (
FactTable,
IF (
vFirstDate < FactTable[Alert Date],
FactTable[Market] & ": " & FactTable[Alert Message]
),
" | "
)
RETURN
vResult
3. Create visuals:
------------------------------------------------------
Proud to be a Super User!
I reproduced your solution and it works perfectly fine !! I tend to forget that I can create tables to ease something like that.
Thank you very much!
Best,
BT
User | Count |
---|---|
65 | |
60 | |
47 | |
33 | |
32 |
User | Count |
---|---|
86 | |
75 | |
56 | |
50 | |
45 |