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.
Hello!
I have an typical issue. In my cube, I have some project related data. That has version number. So for example,
Project number Version
36002 v001
36002 v002
36390 v001
Now in the report, if a user selects the project then the data attached to latest version (for project 36002-- v002, for project 36390-- v001) should be shown. One way to solve is to create a flag which can be then used to filter the report like:
Project number Version IsActive
36002 v001 0
36002 v002 1
36390 v001 1
This flag is currently not available in the cube. So I will need to create it. What DAX query should be used to update this flag?
Regards
Priya
Solved! Go to Solution.
are you working in import or direct query?
can you strip the "v" so the version number will be an actual integer?
If so, you could have a calculated column with
IsLatest=
var thisProject=Yourtable[ProjectNumber]
VAR thisVersion=YourTable[Version]
RETURN
IF(MAXX(FILTER(YourTable;YourTable[ProjectNumber]=thisProject);Yourtable[Version])=thisVersion;1;0)
are you working in import or direct query?
can you strip the "v" so the version number will be an actual integer?
If so, you could have a calculated column with
IsLatest=
var thisProject=Yourtable[ProjectNumber]
VAR thisVersion=YourTable[Version]
RETURN
IF(MAXX(FILTER(YourTable;YourTable[ProjectNumber]=thisProject);Yourtable[Version])=thisVersion;1;0)
Thank you @Anonymous for the quick reply. I am using direct query for reading the data. Yes i can create one more calculated column where i dont take "v" into version number
Regards
Priya
I'm not really practical with DirectQuery so I don't know if that works, to be honest
@Anonymous : That solution worked! Thanks! 🙂
Check out the May 2026 Power BI update to learn about new features.
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 |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |