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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
GRN_VPR8
Frequent Visitor

SUM of a measure not a column

I am trying to find a way to sum the total of a measure. 

To be clear, this is just a table visualisation of measures! , the first column is just the time from a table. The second column is a measure of working out the maximum possible rate for a 15-minute period, and the last column is the measure. You can see in the below picture that if the second column value is above the target amount in this case 2500, it puts a 1 and if not, it puts a zero this works fine, but I want to know how many times I hit the target, but as its a measure I don't seem to be able to use sum? as this only works on columns in actual tables, not visualisations.

Can anybody help?

GRN_VPR8_0-1698167816277.png

 

1 ACCEPTED SOLUTION
EylesIT
Resolver II
Resolver II

@GRN_VPR8, here is my solution.

 

Change the measure [PAL_25K_Above] to this:

PAL_25K_Above = 
    SUMX(
        VALUES(YourTable[Time]),
        IF([PALLETISING 15-min-RA] >= 2500, 1, 0)
    )

View solution in original post

2 REPLIES 2
EylesIT
Resolver II
Resolver II

@GRN_VPR8, here is my solution.

 

Change the measure [PAL_25K_Above] to this:

PAL_25K_Above = 
    SUMX(
        VALUES(YourTable[Time]),
        IF([PALLETISING 15-min-RA] >= 2500, 1, 0)
    )

@EylesIT  Thank you 🙂

GRN_VPR8_1-1698171505596.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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