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
mrbajana
Helper III
Helper III

Mesure Sum the Cut Date from Slicer

I need a measure in the table that  sum the sales ​​with the cutoff date, that is, the last date of the segmenter and that in the table I add up and show me only what is in the red box, not the rest , the rest should not appear or show the values os sales ​​at 0. In this case, for example, only the three items that are from July 13, which is the last date selected. Keep in mind that it is a flat table, there are no dates dimensions.

2021-07-14_16h45_04.png

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

Hi, @mrbajana ;

You could create a measure as follows:

Measure =
IF (
    MAX ( [Caiday] ) = CALCULATE ( MAX ( [Caiday] ), ALLSELECTED ( 'Table' ) ),
    CALCULATE (
        SUM ( [Uit veta] ),
        FILTER ( ALLSELECTED ( 'Table' ), [Caiday] = MAX ( [Caiday] ) )))

The final output is shown below:

vyalanwumsft_0-1626670660847.pngvyalanwumsft_1-1626670695897.png

Best Regards,
Community Support Team_ Yalan Wu
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

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @mrbajana ;

You could create a measure as follows:

Measure =
IF (
    MAX ( [Caiday] ) = CALCULATE ( MAX ( [Caiday] ), ALLSELECTED ( 'Table' ) ),
    CALCULATE (
        SUM ( [Uit veta] ),
        FILTER ( ALLSELECTED ( 'Table' ), [Caiday] = MAX ( [Caiday] ) )))

The final output is shown below:

vyalanwumsft_0-1626670660847.pngvyalanwumsft_1-1626670695897.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.