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 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
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 |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |