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.
I have this formula in excel and I need to use the equivalent in Power BI using DAX:
=GETPIVOTDATA("Count of Sales Year",$A$3,"Product Available Date",2022,"Product","bikes")
+ GETPIVOTDATA("Count of Sales Year",$A$3,"Product Available Date",2022,"Product","toys")
+ GETPIVOTDATA("Count of Sales Year",$A$3,"Product Available Date",2022,"Product","clothes")
Solved! Go to Solution.
Count of Sales Year =
COUNTX(FILTER(SALES, SALES[Product Available Date] = "2022" && SALES[Product] = "Bike"),
[Sales Year]
)
+ COUNTX(FILTER(SALES, SALES[Product Available Date] = "2022" && SALES[Product] = "Toys"),
[Sales Year]
)
+ COUNTX(FILTER(SALES, SALES[Product Available Date] = "2022" && SALES[Product] = "Clothes"),
[Sales Year]
)
Count of Sales Year =
COUNTX(FILTER(SALES, SALES[Product Available Date] = "2022" && SALES[Product] = "Bike"),
[Sales Year]
)
+ COUNTX(FILTER(SALES, SALES[Product Available Date] = "2022" && SALES[Product] = "Toys"),
[Sales Year]
)
+ COUNTX(FILTER(SALES, SALES[Product Available Date] = "2022" && SALES[Product] = "Clothes"),
[Sales Year]
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |