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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Jay2022
Helper III
Helper III

how do i get a value from a calculation to show the same value all the way down a column in a table

so i made a new measure which resulted in a value i now want that value to appear all the way down a colum so that i can pull other fields in to create a table and also perform calculations from other columns with the valye created in the measure 

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @Jay2022 
Is this a calculated column (back end in the data table) or a measure (in a visual).

If it is a measure in a visual then you can use:
Calculate( [Your Measure], table[Column] = "Your filters") to add filters

or

Calculate( [Your Measure], all(table), All(table[Column])) to remove certain filters on tables or columns.

 

If it is a calculated column, you can create the column and set it equal to your measure.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Jay2022 

 

This may help:

Here I create a set of sample:

Table:

vzhengdxumsft_0-1730256472233.png

Then add a measure:

Measure = SUM('Table'[Values])

vzhengdxumsft_1-1730256574960.png

If I want the value of the measure shows grouped by ID, it's possible to add a filter in the measure:

MEASURE =
VAR _currentID =
    SELECTEDVALUE ( 'Table'[ID] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Values] ),
        FILTER ( ALL ( 'Table' ), 'Table'[ID] = _currentID )
    )

The result is as follow:

vzhengdxumsft_2-1730256753693.png

Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI

Understand the Filter Context and How to Control i... - Microsoft Fabric Community

 

 

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.

SamWiseOwl
Super User
Super User

Hi @Jay2022 
Is this a calculated column (back end in the data table) or a measure (in a visual).

If it is a measure in a visual then you can use:
Calculate( [Your Measure], table[Column] = "Your filters") to add filters

or

Calculate( [Your Measure], all(table), All(table[Column])) to remove certain filters on tables or columns.

 

If it is a calculated column, you can create the column and set it equal to your measure.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Excellent thank you

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors