Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hello guys,
i am new in power bi and i am facing some issues in DAX (CALCULATE() FUNCTION).
i had created one measure with the following dax query : -
so the issue is this : -
when i am adding year column in my visualization the data is also filtered out through YEAR in addition with "table 1"[brand] = "bagga buggy" (which i had mentioned in above dax query).
Since "table 1"[brand] = "bagga buggy" Internally this should work like this "FILTER(ALL('TABLE 1'),'table 1'[brand] = "bagga buggy" ) "
WITH "table 1"[brand] = "bagga buggy"
WITH "FILTER(ALL('TABLE 1'),'table 1'[brand] = "bagga buggy" )"
CAN ANY ONE HELP ?
Solved! Go to Solution.
Hi @push ,
Whether the "the total of this measure" you mean is a yellow label for the image:
Here are the steps you can follow:
1. Create measure.
Total =
var _table=SUMMARIZE('Table','Table'[Group],"Value",[Measure])
return
IF(
HASONEVALUE('Table'[Group]),[Measure],SUMX(_table,[Value]))
2. Result:
If you need pbix, please click here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @push ,
Whether the "the total of this measure" you mean is a yellow label for the image:
Here are the steps you can follow:
1. Create measure.
Total =
var _table=SUMMARIZE('Table','Table'[Group],"Value",[Measure])
return
IF(
HASONEVALUE('Table'[Group]),[Measure],SUMX(_table,[Value]))
2. Result:
If you need pbix, please click here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@push Create this measure,
MEASURE = CALCULATE
( SUM('Table 1'[quantity ])*SUM('Table 1'[net price ]),
FILTER(Table 1, 'Table 1'[brand] = "bagga buggy")
)
Thanks for your effort,
but the total of this measure
will be incorrent
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |