The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
HI,
I have a table
The condition :
Sklad = sklad1
Specification = Specification1
Document type = Material
Sklad = sklad2
Specification = Specification3
Document type = Material
Sklad = sklad3
Document type = Product and Servise
The result should be
Sklad | Amount |
Sklad1 | 4000 |
Sklad2 | 600 |
Sklad3 | 12780 |
File exempl
Тhanks
Solved! Go to Solution.
@DimaMD
I modified your Amount1 measure:
Amount1 =
VAR __SKLAD = SELECTEDVALUE(Sklad[Sklad])
RETURN
SWITCH(
TRUE(),
__SKLAD = "sklad1" , CALCULATE( SUM('Table'[Amount]), 'Table'[Specification] = "Specification1",'Table'[Document type] = "Material"),
__SKLAD = "sklad2" , CALCULATE( SUM('Table'[Amount]), 'Table'[Specification] = "Specification2",'Table'[Document type] IN {"Product","Services"}),
__SKLAD = "sklad3" , CALCULATE( SUM('Table'[Amount]), 'Table'[Document type] IN {"Product","Services"})
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@DimaMD
I modified your Amount1 measure:
Amount1 =
VAR __SKLAD = SELECTEDVALUE(Sklad[Sklad])
RETURN
SWITCH(
TRUE(),
__SKLAD = "sklad1" , CALCULATE( SUM('Table'[Amount]), 'Table'[Specification] = "Specification1",'Table'[Document type] = "Material"),
__SKLAD = "sklad2" , CALCULATE( SUM('Table'[Amount]), 'Table'[Specification] = "Specification2",'Table'[Document type] IN {"Product","Services"}),
__SKLAD = "sklad3" , CALCULATE( SUM('Table'[Amount]), 'Table'[Document type] IN {"Product","Services"})
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Fowmy
thanks for the help
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
13 | |
10 | |
10 | |
9 |