Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello experts,
I want to calculate in the Data table and not in the Report part.
In the table given for example, with several arguments (if, or, and, sumprod ...) I arrive at: - For a Subsystem: determine a "Fait" or "RaF" status. - For a System: assemble the state of its subsystems and return "Fait" if they are all done, "Partiel" if only some are done, and finally "RaF" if nothing has been done (via Task, System, Sub System and implementation data)
for your translation (partiel = partial / Fait = done / RaF = still to do)
example of what i want :
Actualy in power bi
thank !!
Solved! Go to Solution.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create two calculated columns as below.
Sub Sys Status =
IF(
ISBLANK([Date]),
"RaF",
"Fait"
)
Sys Status =
var num =
COUNTROWS(
FILTER(
'Table',
[Travail]=EARLIER('Table'[Travail])&&
[System]=EARLIER('Table'[System])&&
NOT(ISBLANK([Date]))
)
)
var totalnum =
COUNTROWS(
FILTER(
'Table',
[Travail]=EARLIER('Table'[Travail])&&
[System]=EARLIER('Table'[System])
)
)
return
SWITCH(
TRUE(),
num=0,"RaF",
num<totalnum,"Partiel",
num=totalnum,"Fait"
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create two calculated columns as below.
Sub Sys Status =
IF(
ISBLANK([Date]),
"RaF",
"Fait"
)
Sys Status =
var num =
COUNTROWS(
FILTER(
'Table',
[Travail]=EARLIER('Table'[Travail])&&
[System]=EARLIER('Table'[System])&&
NOT(ISBLANK([Date]))
)
)
var totalnum =
COUNTROWS(
FILTER(
'Table',
[Travail]=EARLIER('Table'[Travail])&&
[System]=EARLIER('Table'[System])
)
)
return
SWITCH(
TRUE(),
num=0,"RaF",
num<totalnum,"Partiel",
num=totalnum,"Fait"
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |