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
ReMo66
Regular Visitor

Using Product() in totals calculation

Hi All ...

 

Is it possible to create a measure that is using sum([fieldvalue]) for the daily numbers and product[fieldvalue] for the totals in a month?

 

I have values for all days, so this simplified example:

 

ProductDay 1Day 31Total mth (sum)Total mth (product)
Group A65%26%91%91%
  Prod 120%21%41%45%  <---
  Prod 245%5%50%52%  <---

 

The two marked totals should be calculated as Product([Fieldvalue]+1) - 1

 

 Hope someone can point me in the right direction.

 

Regards, Rene Moller

 

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

@ReMo66,

 

You may add a measure as follows.

=
IF (
    ISFILTERED ( Table1[Product] ),
    PRODUCTX ( Table1, Table1[fieldvalue] + 1 )
        - 1,
    SUM ( Table1[fieldvalue] )
)
Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@ReMo66,

 

You may add a measure as follows.

=
IF (
    ISFILTERED ( Table1[Product] ),
    PRODUCTX ( Table1, Table1[fieldvalue] + 1 )
        - 1,
    SUM ( Table1[fieldvalue] )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Brilliant, thx!.

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.