Search Form with different conditions

Hello, Iโ€™m trying to do a search form using data from more than one tables in my app. Iโ€™would search the data on this conditionโ€“> If the project is โ€œe-SicilyTravel BlockChainโ€ and the partner is โ€œArancia-ICTโ€, go in table โ€œDati Personaleโ€ and SUM the column โ€œCostoโ€ where โ€œPeriodoโ€ is >= than โ€œDAโ€, <= than โ€œAโ€ and โ€œPartnerโ€ is equal to "Arancia-ICT.
I tried whit this formula but It is wrong in the syntax

IF [Progetto]= โ€œe-SicilyTravel BlockChainโ€,
AND [Partner]=โ€œArancia-ICTโ€,
SUM(
SELECT(Dati Personale[Costo],
AND ([Periodo]>=[DA],[Periodo]<=[A], [Partner]= โ€œArancia-ICTโ€)
))

The search form is this one

The main problem is that I have different project and different partner and it means that the formula could be very complicated.
I hope in your support.
Thanks

Solved Solved
0 5 218
  • UX
1 ACCEPTED SOLUTION

Yes, you need to supply an โ€œelseโ€ value in an IF().

View solution in original post

5 REPLIES 5

Should be:

IF( AND( [progetto] = xx , [partner] = yy ) , ...

Have you looked at IFS() yet?

I tried with your support but It ask the third inputโ€ฆ

Yes, you need to supply an โ€œelseโ€ value in an IF().

thanks Mark, I wouldnโ€™t open a new topic for a similar problem in which iโ€™m fallenโ€ฆ
In this case, i would obtain a percent value because i have to divide the value [Totale] for the value [Budget Totale Partner] that itโ€™s situated in the table โ€œTotale Progettoโ€

IFS(
(
AND([Progetto]=โ€œe-SicilyTravel BlockChainโ€ , [partner]=โ€œArancia-ICTโ€),
SELECT(Totale Progetto[Budget Totale Partner],[partner]=โ€œArancia-ICTโ€)/[Totale]
))

No probem, I solved!!

Top Labels in this Space