The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
community help needed
I have two table, one is "data" and other is "guide".
"result" table is answer what i need
What i need is amount SUM when data table account is between guide table TVTIAL and TVTILO ?
Simple solution, something like this:
CALCULATE(
SUM(DATA[amount]),
FILTER(DATA[account] >= GUIDE[TVTIAL] && DATA[account] <= GUIDE[TVTILO])
)
of course the above doesn't work
What is the right way to solve it?
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
EUROT measure: =
IF (
HASONEVALUE ( Guide[RIVINRO] ),
SUMX (
FILTER (
Data,
Data[Account] >= MAX ( Guide[TVTIAL] )
&& Data[Account] <= MAX ( Guide[TVTILO] )
),
Data[Amount]
) * -1 + 0
)
Hi,
Please check the below picture and the attached pbix file.
EUROT measure: =
IF (
HASONEVALUE ( Guide[RIVINRO] ),
SUMX (
FILTER (
Data,
Data[Account] >= MAX ( Guide[TVTIAL] )
&& Data[Account] <= MAX ( Guide[TVTILO] )
),
Data[Amount]
) * -1 + 0
)
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |