cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Geradav
Responsive Resident
Responsive Resident

Power BI Report Builder - Calculate a measure based on another dataset

Hello,

 

I am creating a paginated report using Power BI Report Builder.

I have a chart embedded in a list attached to a dataset (dataset 1).

The chart displays a measure calculated for dataset 1 for each region.

The chart title should display another measure based on another dataset (dataset 2) for the same region.

The measure in the chart title should be similar to SUM(dataset2.[measure]) WHERE dataset2.[region] = dataset1.[region]

 

Not sure how to approach that with PBIRB and any help will be welcome.

 

Thanks

David

 

 

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @Geradav 

 

Try below formula:

Measure 2 = SUMX(FILTER('Table',[region]=MAX('Table (2)'[region])),[Measure])

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Geradav
Responsive Resident
Responsive Resident

Hi @v-diye-msft , Thanks for your suggestion, however, I am not using Power BI Desktop in this case but Power BI Report Builder, and I don't think I can use DAX in PBIRB. Also, data modeling and the approach to creating measures and reports are quite different.

I haven't found a dedicated forum for PBIRB, but if there is one, I'd be glad to know.

 

Thanks

Best regards

 

David

You cannot access dataset2 inside dataset1. Have you tried workaround suggestion @ https://stackoverflow.com/questions/44917858/accessing-one-dataset-in-another-dataset-ssrs? Separately, if your datasource is AS (or Power BI dataset) then you can use DAX in PBIRB; its available through the Query Designer in PBIRB.

Geradav
Responsive Resident
Responsive Resident

Thanks @rpatkar for your message.

I'll check that further and give it a try.

 

Regards

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors