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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

displaying multiple measures in one table

Hi,


I would like to create a new table which displays four seperate measures. The result should look like:

Column 1                     Column2
Name of measure 1     Result measure 1

Name of measure 2     Result measure 2
Name of measure 3     Result measure 3
Name of measure 4     Result measure 4

The result of the measures is always one numerical number.

How can I create a new table which displays multiple measures? 

Thank you for your help on this.


PS hereby an example of one of the measures:
Measure 1 = 
VAR calc1 = CALCULATE(DISTINCTCOUNT(FACT_C[CID]), FACT_C[OTC] = 1)
VAR calc2 = DISTINCTCOUNT(FACT_C[CID])

RETURN
FORMAT(DIVIDE(calc1, calc2,0),"0%")

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

Hi @Anonymous 

If you create a table to show your measures, the result of measure will be a determind aggregation value, it won't be dynamic. 

My Sample

1.png

Here I create 4 measures to calculate sum, min, max and average of Sales.

Then create a new table to show results calculated by measure.

Table 2 = 
VAR _MEASURENAME = { "Measure1", "Measure2", "Measure3", "Measure4" }
VAR _ADDCOLUMN =
    ADDCOLUMNS (
        _MEASURENAME,
        "Measure",
            SWITCH (
                [Value],
                "Measure1", [Measure1],
                "Measure2", [Measure2],
                "Measure3", [Measure3],
                "Measure4", [Measure4]
            )
    )
RETURN
    _ADDCOLUMN

Result is as below.

2.png

Best Regards,
Rico Zhou

 

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-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

If you create a table to show your measures, the result of measure will be a determind aggregation value, it won't be dynamic. 

My Sample

1.png

Here I create 4 measures to calculate sum, min, max and average of Sales.

Then create a new table to show results calculated by measure.

Table 2 = 
VAR _MEASURENAME = { "Measure1", "Measure2", "Measure3", "Measure4" }
VAR _ADDCOLUMN =
    ADDCOLUMNS (
        _MEASURENAME,
        "Measure",
            SWITCH (
                [Value],
                "Measure1", [Measure1],
                "Measure2", [Measure2],
                "Measure3", [Measure3],
                "Measure4", [Measure4]
            )
    )
RETURN
    _ADDCOLUMN

Result is as below.

2.png

Best Regards,
Rico Zhou

 

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

amitchandak
Super User
Super User

@Anonymous , on Matrix, Use option Show on rows.

and No row / No column

 

Only measures in values 

Anonymous
Not applicable

Some more detail / more clarification:

 

I need to create a new table for these measures because I am going to use them in the "charticulator" chart in PowerBI. For charticulator to work, I need to have all the data in one table together.

Which measure do I need to write to create a table out of multiple measures?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.