The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello!
I need some help with DAX expressions.
The context: I have a table with 3 columns: project names, efficiency in percent for each project and quarter. The table is for one year, so I have 4 quarters in quarter column. The projects are not always the same according to the quarter.
What I need is to select a quarter with a quarter slicer (let's say Q2) and see the general productivity during the year, by each quarter. But only for projects that we can see in Q2 (A and C) and not all the projects together. (For exemple, if there were 45 projects in Q2 and 50 in Q3 I need a history only about those 45).
I tried several ideas as créatin a variable with list of projects in selected quarter and comparing after this list of projects with all the projects with FILTER, ALLSELECTED and IN, but I get "columns can't be converted to scalar value" mostly for all my tries.
Should it be something like tables created with SUMMARIZECOLUMN ?
Thank you in aadvance !
Solved! Go to Solution.
Hi,
Here is one approach to this:
Data:
Dax:
When selecting Q4 P3 is disregarded in calculation since it doesn't have data on Q4:
Using this logic you should be able to create the measure you want.
Proud to be a Super User!
Hi,
Here is one approach to this:
Data:
Dax:
When selecting Q4 P3 is disregarded in calculation since it doesn't have data on Q4:
Using this logic you should be able to create the measure you want.
Proud to be a Super User!
User | Count |
---|---|
24 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
29 | |
13 | |
11 | |
9 | |
9 |