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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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