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
Anonymous
Not applicable

Total of meassure is wrong - Can't make other guides work

Hi guys 

I know this has been posted a couple of times, but I cannot get the other guides to work, so i was hoping you would help me. 

I have this table: 

Customer nameOur # visits Their # visitsOur % of total visits
Customer 1109010 %
Customer 2208020 %
Customer 3157515 %
Total4524515.52 %


I need the total of "our % of total visits to be equal to 45 % and not 15.52 % 

I tried using the meassure provided by others in this forum 

MyMeasure = IF(HASONEFILTER('Sessions (SessionStats)'[Customer ID]);
DIVIDE(SUM('Sessions (SessionStats)'[Raptor sessions]);SUM('Sessions (SessionStats)'[Raptor sessions])+sum('Sessions (SessionStats)'[Non-Raptor sessions]));
SUMX('Sessions (SessionStats)';DIVIDE('Sessions (SessionStats)'[Raptor sessions];'Sessions (SessionStats)'[Non-Raptor sessions]+'Sessions (SessionStats)'[Raptor sessions]))
)

In my table:
The customer name refers to: The table "Customer" and the collumn "Costumer name" Which has a reference to the customer ID from the sessionstats table 
Our # visits refers to: The table "Sessions (SessionStats)" and the collumn "Raptor sessions" 
Their # visits refers to: The table "Sessions (SessionStats)" and the collumn "Non-Raptor sessions" 
Our % of total visits is a meassure that currently calculated: 
divide([Our # visits];CALCULATE([Our # visits]+[Their # visits]))

I hope you are able to help - since I have tried a lot to follow other guides. 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Try a new measure like

sumx(summarize(Table, Table[Customer name],"_our",[	Our % of total visits]),[_our])

 

USe measure [ Our % of total visits]

 

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Try a new measure like

sumx(summarize(Table, Table[Customer name],"_our",[	Our % of total visits]),[_our])

 

USe measure [ Our % of total visits]

 

 

Anonymous
Not applicable

Thank your very much! 

It worked perfectly 😄 

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.