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, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply

Measure Creation - Need to combine static data (at a certain level) with dynamic measure

Hi All,

 

I have a requirement to create a visual, which has to show how many times a report was accessed from ReportServer DB.
For Subscription reports, the usage was coming as 0 as no user accesses the url for it to get captured in the reportserver DB.
However, I have the approx monthly frequency of the subscription report & the count of users to whom the mail will be sent. This information is present in a dataset - 

Subs_usrcnt
Path
User_Count
Delivery Extention

 

I have a fct dataset created after multiple appends etc, columns of interest are listed below - 

Final Dataset
Country
Department
Report Name
Item_Path
Monthly_Frequency
User_Name
Time_Start (time when report was accessed)

 

The tables are joined using - Path field.  1:M (Subscription - Final Dataset).

 

I have a date table, joined with Final Dataset on the time_start field.


Dashboard should be showing data -monthly.

For me to get the Monthly Report Hits (number of times the report is accessed) : 
For Subscription Reports - [count of user by report(if any) from the Final Dataset] + [(Monthly Freq * user_count) for that report]
at a monthly level the 1st part is dynamic & the 2nd part is constant - should not get aggregated or anything at a report name level.

For other reports (having pbix file) - Count of user accessed the report in that month.

1 measure for all the reports. 

And then somehow I have to keep the same number - [(Monthly Freq * user_count) for that report] across all months, but it should get rolled up when country & dept alone are selected.

The dashboard has 2 visuals - 
1. Country and dept wise - report hits (along with a few other measures)
2. Country, Dept, Report Name & Month wise - Report Hits

Appreciate your help in advance.

Thanks,
Sahitya Y

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

I think your data model is not right, if you split out the report and user data into their own dimensions then you can simply sum the monthly frequency from the Final Dataset and the sum the UserCount from the subscriptions and add these 2 measures together.

 

eg

 

Report

Report Name

Item_Path

 

User

Country

Department

User_Name

 

Final Dataset

Item_Path

Monthly_Frequency

User_Name

Time_Start (time when report was accessed)

 

Subscription

Path
User_Count
Delivery Extention

Then create the following relationships:

 

Report 1 -> M  Subscription

Report 1 -> M Final Dataset

User 1 -> M Final Dataset

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

I think your data model is not right, if you split out the report and user data into their own dimensions then you can simply sum the monthly frequency from the Final Dataset and the sum the UserCount from the subscriptions and add these 2 measures together.

 

eg

 

Report

Report Name

Item_Path

 

User

Country

Department

User_Name

 

Final Dataset

Item_Path

Monthly_Frequency

User_Name

Time_Start (time when report was accessed)

 

Subscription

Path
User_Count
Delivery Extention

Then create the following relationships:

 

Report 1 -> M  Subscription

Report 1 -> M Final Dataset

User 1 -> M Final Dataset

Hi @d_gosbell, I changed the data model, and it was much easier with dealing with the measures I wanted to create with this new model.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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