Forum Discussion
Getting PowerBI to show current excel function that uses today() expression
- 4 years ago
I'd probably do something like:
Current Primary = CALCULATE ( SELECTEDVALUE( Assignment[Primary Individual] ), Assignment[Date Start] <= TODAY(), Assignment[Date End] >= TODAY() )
I'm sure you could use power automate
to recalculate a sheet.
If I were you though I'd pull the raw data table in and write a measure to reproduce the logic inside power bi.
That makes sense to just have it look it up within PowerBI... Thanks! I'm not great with DAX, can you help with the equation? in Excel it's
=LOOKUP(2,1/($A$29:$A$34<=TODAY())/($B$29:$B$34>=TODAY()),$C$29:$C$34)
Within PowerBI, would it be a "lookupvalue" function?
- bcdobbs4 years agoCommunity Champion
I'd probably do something like:
Current Primary = CALCULATE ( SELECTEDVALUE( Assignment[Primary Individual] ), Assignment[Date Start] <= TODAY(), Assignment[Date End] >= TODAY() )- bcdobbs4 years agoCommunity Champion
That creates a measure which would display todays primary. If that's all you need then just drop it in a card visual.
If you have more complicate needs downstream of that then give some details.
- Ashish_Mathur4 years agoSuper User
Hi,
Share some data, describe the question and show the expected result.