Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
tonyc
Frequent Visitor

Measure to create dynamic label in table

Is it possible to do in a measure to build a dynamic label in a table? 

From this table 

 

 GroupVOL
A178
B225
C126
D157
E76
F238
  
TOTAL1000

 

I want to expand F by divide by 4

 

to 

 

 GroupVOL
A178
B225
C126
D157
E76
F 159.5
F 259.5
F 359.5
F 459.5
  
TOTAL1000

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @tonyc ,

 

Here are the steps you can follow:

1. Create calculated table.

True =
var _table=
FILTER('Table',[Group]="F")
var _table1=
GENERATE (
    _table,
    SELECTCOLUMNS (
        GENERATESERIES ( 1, 4),
        "Index", [Value]
    )
)
var _table2=
ADDCOLUMNS(
    _table1,"Group1",[Group]&" "&[Index])
var _table3=
SUMMARIZE(
    _table2,[Group1],"VOL",MAXX(_table2,[VOL]) / 4)
return
UNION(
    FILTER('Table',[Group]<>"F"),_table3)

2. Result:

vyangliumsft_0-1698026831358.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @tonyc ,

 

Here are the steps you can follow:

1. Create calculated table.

True =
var _table=
FILTER('Table',[Group]="F")
var _table1=
GENERATE (
    _table,
    SELECTCOLUMNS (
        GENERATESERIES ( 1, 4),
        "Index", [Value]
    )
)
var _table2=
ADDCOLUMNS(
    _table1,"Group1",[Group]&" "&[Index])
var _table3=
SUMMARIZE(
    _table2,[Group1],"VOL",MAXX(_table2,[VOL]) / 4)
return
UNION(
    FILTER('Table',[Group]<>"F"),_table3)

2. Result:

vyangliumsft_0-1698026831358.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

the original source is not a table. It is a visualisation table. VOL is a measure.

VOL = CALCULATE(

     ( [A1 ] * [A1 WEIGHT]) +
    ( [A2] * [A2 WEIGHT] ) +
    ( [A4] * [A4 WEIGHT] ) +
    ([A3] * [A3 WEIGHT])
   )
 How can i change Electing to Electing 1, Electing 2, Electing 3 and Electing 4 with 59,5% each?

thank you

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.