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.
Hi ALL,
I have a table contains my survey data and I mapped it with a Date table and I don't want to apply any value from my Date[MMM-YYYY] on my measure created using survey table data.
If you want to completely ignore any filters on 'Date', then you write:
Score =
CALCULATE (
DISTINCTCOUNT( Survey[responseid] ),
KEEPFILTERS(
Survey[category] = "Top2"
),
KEEPFILTERS(
Survey[recordeddate] >= DATE(2020,11,1)
),
ALL( 'Date' )
)
Also, filtering by a full fact table, Survey, as you do in your code is not only bad practice from many points of view, but more importantly it slows down your code to a great extent and sometimes can indeed be dangerous. One should always only filter by columns that are really needed. There's too much theory behind the above rules to explain here. If you want to know more, you can look for articles on www.sqlbi.com or read the book "The Definitive Guide to DAX".
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |