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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

semi additive measure

I've a table Fact Performance Indicators

 

salesorderidActivity_Inter_IddateamountcustomerCoex
1112003/06/2022200JJJ0,3
226003/07/2022900HHHH0,4
334003/06/20221200JJJHH0,7
342003/06/20227200JJJJJ0,3

 

For the same year and activity_inter_id, I've the same value for Coex

Here's the data model

 

jawaher89_0-1667924081270.png

 

In the report, I've two calendars and I've two measures

CoEx calendar 1 =

               calculate(
                            if( SUMx('Fact Performance Indicators','Fact Performance Indicators'[COEX])=0 , blank(), SUMx('Fact Performance Indicators','Fact Performance Indicators'[COEX])),
                           'Date'[Mois]=max('Date'[Mois])
                        )
   
 
CoEx  Calendar 2 =

        CALCULATE(   (
                  'Fact Performance Indicators'[CoEx 1]),
                   // REMOVEFILTERS('Date'),
                     REMOVEFILTERS('YTD Calendar'),
                   
                     USERELATIONSHIP('Date 2'[Date],'Fact Performance Indicators'[Date]) , 'Date'[Mois]=max('Date 2'[Mois])
                       )

The results are wrong: the coex is a value between 0 and 1 and it should not be count or summarize, here the results for calendar 2 are too much and more than 1 

 

jawaher89_2-1667924302356.png

Coex is a semi additaive value 

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

What's the expected result for [CoEx calendar 1] and [CoEx  Calendar 2]? Could you please explain their backend calcuation logic with some sample data and special examples? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!