Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Sirs,
I'm having trouble converting this sql query to dax.
SELECT SUM(VALOR)
FROM TB_Lancamentos
WHERE TipoLancamento = 'RPIU'
AND NOT EXISTS ( SELECT ID_Lancamento
FROM TB_Lancamentos
WHERE TipoLancamento = 'ARPIU'
AND ID_Lancamento_Pai NOT IN ( SELECT ID_Lancamento
FROM TB_Lancamentos
WHERE TipoLancamento = 'RPIU'
)
);
Can you help me?
Thanks.
Instead of trying to convert apples to oranges (also known as "fighting the API") you will want to write down the business question you are planning to answer, and then you can construct your Power Query or DAX code step by step to solve that question.
Please provide sample data in usable format (not as a picture) and show the expected outcome.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |