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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

Need Help or Workaround With Measures

Hello - 

 

I am going to attempt to explain the issue I am having as best I can with both screen shots.

 

I have multiple tables related to AccountsMasterList but for purposes of this question, I am focusing on the ViewershipData table.

 

Relationships.PNG

 

Viewship data contains some usage data and for purposes of this, I want to look at hours watched by Account Number by Programmer and by Channel Name. I have this data for the past 365 days, so there are ~70M rows in this table.

 

 

ViewershipTable.PNG

 

What I am looking to do is the following:

 

Select a programmer via a slicer and look by Account Number at HoursWatched for that programmer as a percentage of their total hours watched. I have been able to acomplish this with a measure that renders correctly.

 

% of Total Viewing = DIVIDE(CALCULATE(SUM(ViewershipData[HoursWatched])),CALCULATE(SUM(ViewershipData[HoursWatched]),ALL(ViewershipData[Programmer])),0)
 
Selected.PNG
 
So here is where I am stuck with what I want to do:
 
1. I want users to be able to select a programmer and select a range of the % of Total Viewing and view information about those accounts. Example: A user wants to look at all Account Numbers where usage of the selected programmer is between 6% and 7%.
 
2. Then (preferably through a drill through but would be okay with any working option), I want to then be able to look at the channels for the selected programmer and see of those selected accounts what are the Hours Viewed per channel as a percent of the programmer grand total. I created a working measure similar to the one above for the channel values and it renders properly when I select a programmer.
 
% of Total Viewing (Channel) = DIVIDE(CALCULATE(SUM(ViewershipData[HoursWatched])),CALCULATE(SUM(ViewershipData[HoursWatched]),ALL(ViewershipData[Channel)),0)
 
Channels.PNG
 
I know that due to how measure work and render that a measure cannot be used on a slicer. I also know that you can do a visual level filter to acomplish getting the accounts list with the first measure manually but I have a page with 9-10 visuals that all will need adjusted. 
 
I hope this makes sense. If you need a working file, I can try to provide a slimmed down version withouth any proprietary information in it.
 
Thanks in advance for any help and suggestions.
 
Matt
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@matthew_hampton,

 

You may take a look at the following posts.

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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@matthew_hampton,

 

You may take a look at the following posts.

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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.