This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi All.... I have a requirement i am struggling with...
I have logic as below as a slicer to divide my activities.
But the problem is if the activity followupstartdate is 5th feb and today is 16th feb, and if the closed status is not equal to s or u it has to fall under 2 categories.(Open & Due now ,Open & 7+days past due). but as per below screen shot t falls under due now. how do i acheive it? i.e when i select any option between these two below i should be able to see that activity.
Help please!
Hi @jostnachs ,
You can try the following code
DueStatus =
VAR TodayDate = TODAY()
VAR ClosedDate = V_DimActivities[FollowupStartDate]
VAR ClosedStatus = V_DimActivities[ClosedStatus]
VAR DaysDifference = DATEDIFF(ClosedDate,TodayDate,DAY)
RETURN
IF(
ClosedStatus <> BLANK() && (ClosedStatus = "S" || ClosedStatus = "U"),
"Closed",
IF(
ClosedStatus <> BLANK() && ClosedStatus <> "S" && ClosedStatus <> "U",
IF(
DaysDifference > 7,
"Open & 7+days past due" ,
IF(
DaysDifference >= 0,
"Open & Due now"
)
)
)
)
Turn on multi-select in slicer settings
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
jostnachs,
I'm guessing your logic is a calculated column? In any case, one DAX calculation can't return two different values. My first question is why would your slicer criteria not be mutually exclusive? Why would one item fall under multiple statuses?
Proud to be a Super User! | |
What do you mean by mutually exclusive... sorry i dont get it.
jostnachs,
Why would your slicer criteria not be mutually exclusive, meaning I would suggest having slicer options (ex: A, B, and C) where one activity must be either A, B, or C and cannot be more than one of A, B, and C at the same time.
Let me know if I should explain further or differently!
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.
Proud to be a Super User! | |
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 25 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 27 | |
| 22 | |
| 22 |