Measure works in Excel PP - but not in PowerBI

smaur

New Member
Joined
May 17, 2007
Messages
17
Hi All,
I have a fact table of 'events' with a dates of occurrence for each event and other data about the events. In PowerPivot I have a measure to count the number of occurrences of events between two dates as filtered by a Date Slicer. The measure relies on the UseRelationship function because I need to have the relationship between fact table and date table normally inactive.

Here is that measure:
TotalEvents:=Calculate(COUNTROWS(fProdStop),USERELATIONSHIP(DCalendar[Date],fProdStop[FromDate]))

This works fine in Excel. The problem is I can't get it to work in Power BI. My resulting bar chart for the event count plotted against the month on the x axis shows only one bar, with the word (blank) beneath the bar. The value plotted on that one bar is the total number of events for every month in one lump sum.

Any ideas of what is happening here?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Check the connection type in PowerBI between your tables. They me be set to bidirectional which could mess up your results.
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,040
Members
448,543
Latest member
MartinLarkin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top