Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
Here is my data :
Name | Phase | Statuts |
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 I want to have this :
Name | APS | EXE | LIV |
Extract 2D plans | High | Medium | Low |
Other Function | Medium | Low | High |
I want to do this on PowerBI, without using Power Query (because I have a lot of operations done in Power BI before)
This is for making a Sankey diagram : Source APS and Destination EXE then Source EXE and Destination LIV
If there is any others solutions (differents data agency or methods), I'm in !
Thanks
Solved! Go to Solution.
Hi @Soizle,
You can try measure as:
Measure =
CALCULATE(
MAX('Table'[Statuts]),
FILTER(
'Table',
'Table'[Phase]=MAX('Table'[Phase])
)
)
And drop fields to matrix.
The pbix is attached.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Hi @Soizle
You can create measures as:
APS =
CALCULATE(
MAX('Table'[Statuts]),
FILTER(
'Table',
'Table'[Phase]="APS"
)
)
EXE =
CALCULATE(
MAX('Table'[Statuts]),
FILTER(
'Table',
'Table'[Phase]="EXE"
)
)
LIV =
CALCULATE(
MAX('Table'[Statuts]),
FILTER(
'Table',
'Table'[Phase]="LIV"
)
)
Here is the output:
The pbix is attached.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Hi and thanks.
In fact I'm looking for doing this in only one automated request beacause I have several types. Is that possible ?
Hi @Soizle,
You can try measure as:
Measure =
CALCULATE(
MAX('Table'[Statuts]),
FILTER(
'Table',
'Table'[Phase]=MAX('Table'[Phase])
)
)
And drop fields to matrix.
The pbix is attached.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Is it possible to convert this mesure into a table?
I tried with CALCULATETABLE but the parameters are not correct
Thanks
Hi @diegomartinop,
Table does not support your expectations under the conditions of using a query.
I'm not clear your issue, could you provide more details?
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
@v-xulin-mstf actually I would like to do the same thing that was presented by @Soizle but I need to see the data as a table because the diagram I want to use does not accept mesure in the axis
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |