backward filter and many to many relationship

Yacoubi

I have been really struggling with this for the past week. Let me explain what is it that I'm trying to do and maybe you can help:

  • A forecast is made for 1 product only. It has a date and volume to be ordered
  • A product can have many forecasts
  • Each product is made out of many intermediates (ingredients) using percentages totaling to 100%: Example: product A = 15% intermediate 1 + 45% intermediate 2 + 40% intermediate 3

How can I create a table or chart showing the following:

monthly volumes for each intermediate (intermediate volume = product volume x intermediate percent for that product)

Below is a snapshot of my current Power BI schema:

enter image description here

Yacoubi

I've finally found the answer: Below is the schema: enter image description here

I've created two meausres. The first one in the "PRODUCT" table named "Product Volume": Product Volume = CALCULATE(SUM(FORECAST[Volume]))

The 2nd is in the "RECIPE" table named "Intermediate Volume": Intermediate Volume = IF ( HASONEVALUE ( INTERMEDIATE[IID] ), SUMX ( RECIPE, RECIPE[Percent] * 'PRODUCT'[Product Volume] ), BLANK() )

And this worked perfectly.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

SQL Server : how can I filter a many to many relationship with delimiter

分類Dev

Many to many relationship CRUD in Room

分類Dev

Many-to-many relationship as list

分類Dev

Power Pivot Many to Many Relationship

分類Dev

View Many to Many Relationship in laravel

分類Dev

Querying a many to many relationship in SQL

分類Dev

Convert existing many to many to reverse many to many relationship using XSLT

分類Dev

Creating one to many relationship with pivot table of many to many relationship

分類Dev

Django query filter many to many to many etc

分類Dev

Laravel save / update many to many relationship

分類Dev

Friendship system with Laravel : Many to Many relationship

分類Dev

How to handle Many to Many relationship in mongoDB?

分類Dev

SQL: many-to-many relationship and the 'ALL' clause

分類Dev

Postgres many to many relationship on same base table

分類Dev

Many to many relationship with cascade or set null delete?

分類Dev

Laravel One to Many of One to Many relationship

分類Dev

Adding to a Many to Many relationship given primary keys

分類Dev

Doctrine 2 Many To Many follower relationship not working

分類Dev

Many to many relationship to delete using annotations

分類Dev

Symfony Many to Many relationship Persistent collection

分類Dev

Additional fields in a many-to-many relationship

分類Dev

Hibernate - Many to many relationship: relationship table not getting populated

分類Dev

SQL Joins . One to many relationship

分類Dev

Django query in One to Many relationship

分類Dev

Django query in One to Many relationship

分類Dev

Realm one to many relationship not persisted

分類Dev

One-to-many relationship in gatsby

分類Dev

One to many relationship CoreData Swift

分類Dev

Ef core 5 many to many filter

Related 関連記事

  1. 1

    SQL Server : how can I filter a many to many relationship with delimiter

  2. 2

    Many to many relationship CRUD in Room

  3. 3

    Many-to-many relationship as list

  4. 4

    Power Pivot Many to Many Relationship

  5. 5

    View Many to Many Relationship in laravel

  6. 6

    Querying a many to many relationship in SQL

  7. 7

    Convert existing many to many to reverse many to many relationship using XSLT

  8. 8

    Creating one to many relationship with pivot table of many to many relationship

  9. 9

    Django query filter many to many to many etc

  10. 10

    Laravel save / update many to many relationship

  11. 11

    Friendship system with Laravel : Many to Many relationship

  12. 12

    How to handle Many to Many relationship in mongoDB?

  13. 13

    SQL: many-to-many relationship and the 'ALL' clause

  14. 14

    Postgres many to many relationship on same base table

  15. 15

    Many to many relationship with cascade or set null delete?

  16. 16

    Laravel One to Many of One to Many relationship

  17. 17

    Adding to a Many to Many relationship given primary keys

  18. 18

    Doctrine 2 Many To Many follower relationship not working

  19. 19

    Many to many relationship to delete using annotations

  20. 20

    Symfony Many to Many relationship Persistent collection

  21. 21

    Additional fields in a many-to-many relationship

  22. 22

    Hibernate - Many to many relationship: relationship table not getting populated

  23. 23

    SQL Joins . One to many relationship

  24. 24

    Django query in One to Many relationship

  25. 25

    Django query in One to Many relationship

  26. 26

    Realm one to many relationship not persisted

  27. 27

    One-to-many relationship in gatsby

  28. 28

    One to many relationship CoreData Swift

  29. 29

    Ef core 5 many to many filter

ホットタグ

アーカイブ