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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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]

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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]

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank your very much! 

It worked perfectly 😄 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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