Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I'm new to power bi, and i'm trying to calculate the OEE in a company.
I'm supposed to calculate the availability for every equipment, then the performance and quality for every component produced and then the OEE.
In that way, i need several slicers to apply the specific filters and calculations i need.
So, basically, i need the availability to make the calculation regarding the equipment, but then ignore the selected component.
For that i use an All function im my measure to ignore component. The calculation is done correctly if i don't have the week interval selected(semana), has you can see below.
If i change the selected component the availability stays the same, as it should, but if i change the week slicer to make the calculation for a specific week or weeks of the year, then everytime i change component in the slicer the availability slicer changes as well.
I don't understand why, but for some reason the week slicer must be disabling the all function.
Here's my measure, you can ignore most of it. It just changes the calculation depending on que equipment selected.
I suspect that the problem is because of the bi-directional relationships. As it is currently, a filter on any table will affect every other table. Unless you have very good reason to use bi-directional relationships you should always use single direction relationships with the one-side filtering the many-side.
The problem is that i want my filters to be filtering both tables, dados and paragens. Without the bi-directionality i would need to add the columns that i want to use in the slicers in the dim table dados_paragens. However i cannot do this because when i add them, the key column Nº Ordem that i was using to link the tables returns duplicate values and no longer works to link. Also if i create a new key column with the combinations of the slicer columns i don't achieve a unique column as well, so i have no key to link the tables.
You could potentially combine the 2 dimension tables, e.g.
Combined Table =
DISTINCT ( UNION ( DISTINCT ( Dados_Paragens ), DISTINCT ( Dados_Teoricos ) ) )
and then link this single table to the fact tables, removing the other relationships. Then the relationships from the new combined table could be single direction.
Yes, although the problem with the filters persists, since i still can't apply then to the combined table since i get duplicated values.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |