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 need to convert this DAX measure
Name | Level | Status |
Extract 2D plans | APS | High |
Extract 2D plans | EXE | Medium |
Extract 2D plans | LIV | Low |
Other Function | APS | Medium |
Other Function | EXE | Low |
Other Function | LIV | High |
And what I want is as follows:
Name | APS | EXE | LIV |
Extract 2D plans | High | Medium | Low |
Other Function | Medium | Low | High |
I suggest pivoting the table in Power Query.
However, the link the pbix file (above) shows two solutions. (Power Query way and DAX).
@Jihwan_Kim thanks for your answer.
Actually I need something generic considering the distinct Levels. For example, if I have only APS and EXE, then I don't need the LIV column. However, if I have 4 distincts Levels, then I'll need 4 columns to be added. Would it be possible to generalize in DAX? In Power query I can't use because I have many calculated columns in DAX that are not available in Power query.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |