March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
Need a help i need to include a column in my summarize table which basically gives Rank/Index/Serial No. (1,2,3....) when displayed. Below is the summary Table. Can anyone please help
SUMMARIZE(
filter(ODATA_LINKS, ODATA_LINKS[SourceType] <> BLANK() ),
ODATA_LINKS[SourceWorkItemId],ODATA_LINKS[Complete_ChildCount],ODATA_LINKS[InterfaceNumber],ODATA_LINKS[team],
ODATA_LINKS[Parent],
ODATA_LINKS[SourceTitle],ODATA_LINKS[ExtractedTitle],ODATA_LINKS[CalsourceEndDate],ODATA_LINKS[CalsourceLikely],ODATA_LINKS[CalsourceProb],ODATA_LINKS[Total_Count],
ODATA_LINKS[sourceEndDate],
ODATA_LINKS[sourceLikley],
ODATA_LINKS[sourceProb],
ODATA_LINKS[SourceOutcome],ODATA_LINKS[Milestone_Count],ODATA_LINKS[NotStarted_ChildCount]
)
Solved! Go to Solution.
Heya,
You could simply add a calculated column in your virtual table, as below:
....
ODATA_LINKS[SourceOutcome],ODATA_LINKS[Milestone_Count],ODATA_LINKS[NotStarted_ChildCount]
"Index", RANKX(ALL(ODATA_LINKS),ODATA_LINKS[Parent],,ASC)
)
This will create an index column based on the ODATA_LINKS[Parent] column. You can change this based on needs.
PS: I would start the formula with FILTER first - like this:
Virtual table =
FILTER(
SUMMARIZE(
ODATA_LINKS, ODATA_LINKS[SourceType], ODATA_LINKS[SourceWorkItemId], ODATA_LINKS[Complete_ChildCount], ODATA_LINKS[InterfaceNumber], ODATA_LINKS[team],
ODATA_LINKS[Parent], ODATA_LINKS[SourceTitle], ODATA_LINKS[ExtractedTitle], ODATA_LINKS[CalsourceEndDate], ODATA_LINKS[CalsourceLikely], ODATA_LINKS[CalsourceProb], ODATA_LINKS[Total_Count], ODATA_LINKS[sourceEndDate], ODATA_LINKS[sourceLikley],
ODATA_LINKS[sourceProb], ODATA_LINKS[SourceOutcome], ODATA_LINKS[Milestone_Count], ODATA_LINKS[NotStarted_ChildCount], "Index", RANKX(ALL(ODATA_LINKS),ODATA_LINKS[Parent],,ASC)
ODATA_LINKS[SourceType] <> BLANK()
)
Hope it helps.
Hi,
I am not sure how your expected outcome looks like, but I tried to craete a sample pbix file like below.
It is for creating a new table with adding one more column that shows Row Number.
The row number is based on more than one column.
ROWNUMBER function (DAX) - DAX | Microsoft Learn
New table with additional column =
VAR _t =
SUMMARIZE (
ODATA_LINKS,
ODATA_LINKS[SourceType],
ODATA_LINKS[InterfaceNumber],
ODATA_LINKS[Parent],
ODATA_LINKS[ExtractedTitle],
ODATA_LINKS[NotStarted_ChildCount],
ODATA_LINKS[Milestone_Count],
ODATA_LINKS[Complete_ChildCount],
ODATA_LINKS[Total_Count]
)
VAR _addrownumber =
ADDCOLUMNS (
_t,
"RowNumber",
ROWNUMBER (
_t,
ORDERBY (
ODATA_LINKS[NotStarted_ChildCount], DESC,
ODATA_LINKS[Milestone_Count], DESC,
ODATA_LINKS[Complete_ChildCount], DESC,
ODATA_LINKS[Total_Count], DESC
)
)
)
RETURN
_addrownumber
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure how your expected outcome looks like, but I tried to craete a sample pbix file like below.
It is for creating a new table with adding one more column that shows Row Number.
The row number is based on more than one column.
ROWNUMBER function (DAX) - DAX | Microsoft Learn
New table with additional column =
VAR _t =
SUMMARIZE (
ODATA_LINKS,
ODATA_LINKS[SourceType],
ODATA_LINKS[InterfaceNumber],
ODATA_LINKS[Parent],
ODATA_LINKS[ExtractedTitle],
ODATA_LINKS[NotStarted_ChildCount],
ODATA_LINKS[Milestone_Count],
ODATA_LINKS[Complete_ChildCount],
ODATA_LINKS[Total_Count]
)
VAR _addrownumber =
ADDCOLUMNS (
_t,
"RowNumber",
ROWNUMBER (
_t,
ORDERBY (
ODATA_LINKS[NotStarted_ChildCount], DESC,
ODATA_LINKS[Milestone_Count], DESC,
ODATA_LINKS[Complete_ChildCount], DESC,
ODATA_LINKS[Total_Count], DESC
)
)
)
RETURN
_addrownumber
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Heya,
You could simply add a calculated column in your virtual table, as below:
....
ODATA_LINKS[SourceOutcome],ODATA_LINKS[Milestone_Count],ODATA_LINKS[NotStarted_ChildCount]
"Index", RANKX(ALL(ODATA_LINKS),ODATA_LINKS[Parent],,ASC)
)
This will create an index column based on the ODATA_LINKS[Parent] column. You can change this based on needs.
PS: I would start the formula with FILTER first - like this:
Virtual table =
FILTER(
SUMMARIZE(
ODATA_LINKS, ODATA_LINKS[SourceType], ODATA_LINKS[SourceWorkItemId], ODATA_LINKS[Complete_ChildCount], ODATA_LINKS[InterfaceNumber], ODATA_LINKS[team],
ODATA_LINKS[Parent], ODATA_LINKS[SourceTitle], ODATA_LINKS[ExtractedTitle], ODATA_LINKS[CalsourceEndDate], ODATA_LINKS[CalsourceLikely], ODATA_LINKS[CalsourceProb], ODATA_LINKS[Total_Count], ODATA_LINKS[sourceEndDate], ODATA_LINKS[sourceLikley],
ODATA_LINKS[sourceProb], ODATA_LINKS[SourceOutcome], ODATA_LINKS[Milestone_Count], ODATA_LINKS[NotStarted_ChildCount], "Index", RANKX(ALL(ODATA_LINKS),ODATA_LINKS[Parent],,ASC)
ODATA_LINKS[SourceType] <> BLANK()
)
Hope it helps.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |