Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everyone,
I have 2 table: Project, and Member
How can I create or add index column in my table visual Moji Monitoring based on the condition in slicer? I tried Add Column --> Index Column (from 1) but it's doesn't work. Can anyone please help me to implement it? Thanks
Refer to my Dashboard
Solved! Go to Solution.
Hi
Please try this:
Here I create a new measure:
MEASURE =
VAR _vtable =
CALCULATETABLE (
SUMMARIZECOLUMNS (
'Member'[Member Name],
'Member'[Project ],
'Project'[Code],
"_Phase Combination", 'Project'[Phase Combination],
"_SumIndex", SUM ( Project[Index] )
),
ALLSELECTED ( Project ),
ALLSELECTED ( 'Member' )
)
VAR _vtable2 =
ADDCOLUMNS ( _vtable, "ABC", RANKX ( _vtable, [_SumIndex],, ASC ) )
RETURN
SUMX ( FILTER ( _vtable2, [_SumIndex] = SUM ( Project[Index] ) ), [ABC] )
It's noting that the result is obtained through the Index column
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi
Please try this:
Here I create a new measure:
MEASURE =
VAR _vtable =
CALCULATETABLE (
SUMMARIZECOLUMNS (
'Member'[Member Name],
'Member'[Project ],
'Project'[Code],
"_Phase Combination", 'Project'[Phase Combination],
"_SumIndex", SUM ( Project[Index] )
),
ALLSELECTED ( Project ),
ALLSELECTED ( 'Member' )
)
VAR _vtable2 =
ADDCOLUMNS ( _vtable, "ABC", RANKX ( _vtable, [_SumIndex],, ASC ) )
RETURN
SUMX ( FILTER ( _vtable2, [_SumIndex] = SUM ( Project[Index] ) ), [ABC] )
It's noting that the result is obtained through the Index column
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@JennyMilf
While creating a table or calculated column in Power BI, capturing slicer selections in real-time isn't feasible. Power BI constructs tables and columns before making them available on the report canvas.
A measure can be created using Rank function. Let me know if this is helpful or provide the logic of the index you need to create.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @JennyMilf You could try with DAX by creating a column or measure then adding it
example dax measure : DynamicIndex = RANKX(ALLSELECTED('Project'), 'Project'[SomeValue], , ASC, Dense)
Thanks, but this DAX is not work
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
76 | |
53 | |
37 | |
31 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |