इटरेटिंग फंक्शंस

Power BI में DAX Functions

Maarten Van den Broeck

Content Developer at DataCamp

इटरेटिंग फंक्शंस

  • दी गई टेबल की हर पंक्ति पर इटरेट करें और एक एक्सप्रेशन चलाएँ

SUMX(<table>, <expression>) AVERAGEX(<table>, <expression>)

  • X का मतलब eXpression है
  • हर पंक्ति पर तय एक्सप्रेशन से एडवांस्ड कैलकुलेशन करें
Power BI में DAX Functions

इटरेटिंग फंक्शंस: SUMX()

कैल्क्युलेटेड कॉलम उदाहरण
Cost = Fact_Orders[Sales] - Fact_Orders[Profit]
Total Costs = SUM(Fact_Orders[Cost])
Sales Profit Cost
$77.88 $3.89 $73.99
$22.72 $10.22 $12.50
... ... ...
Total Costs
$2,569
Power BI में DAX Functions

इटरेटिंग फंक्शंस: SUMX()

कैल्क्युलेटेड कॉलम उदाहरण
Cost = Fact_Orders[Sales] - Fact_Orders[Profit]
Total Costs = SUM(Fact_Orders[Cost])
Sales Profit Cost
$77.88 $3.89 $73.99
$22.72 $10.22 $12.50
... ... ...
Total Costs
$2,569
इटरेटिंग फंक्शन उदाहरण
Total Costs SUMX = 
SUMX(Fact_Orders,
     Fact_Orders[Sales] - Fact_Orders[Profit])
Total Costs SUMX
$2,569
Power BI में DAX Functions

फ़िल्टरिंग इटरेटिंग फंक्शंस

  • FILTER() जैसे फ़िल्टर फंक्शंस से फ़िल्टर्ड टेबल रिटर्न करें
SUMX(
    FILTER(
        <table>,
        <filter>),
    <expression>)
Total Costs East SUMX = 
SUMX(
    FILTER(
        Fact_Orders,
        Fact_Orders[Region] = "East"),
    Fact_Orders[Sales] - Fact_Orders[Profit])
Power BI में DAX Functions

फ़िल्टरिंग इटरेटिंग फंक्शंस

  • FILTER() जैसे फ़िल्टर फंक्शंस से फ़िल्टर्ड टेबल रिटर्न करें
SUMX(
    FILTER(
        <table>,
        <filter>),
    <expression>)
Total Costs East SUMX = 
SUMX(
    FILTER(
        Fact_Orders,
        Fact_Orders[Region] = "East"),
    Fact_Orders[Sales] - Fact_Orders[Profit])

$$ $$ $$ $$ $$ $$

Region Total Costs Total Costs East SUMX
Central $501,239.89
East $678,781.24 $678,781.24
South $391,721.91
West $725,457.82
TOTAL $2,297,200.86 $678,781.24
Power BI में DAX Functions

इटरेटिंग फंक्शंस: RANKX()

RANKX(
    <table>,
    <expression>)
  • कुल कॉस्ट से रीजन को रैंक करें
Total Costs RANKX = 
RANKX(
    ALL(Dim_Sales[Region]),
    [Total Costs])
  • डाइमेंशन टेबल की सभी पंक्तियों पर इवैल्यूएट करने के लिए ALL() उपयोग करें
Power BI में DAX Functions

इटरेटिंग फंक्शंस: RANKX()

RANKX(
    <table>,
    <expression>)
  • कुल कॉस्ट से रीजन को रैंक करें
Total Costs RANKX = 
RANKX(
    ALL(Dim_Sales[Region]),
    [Total Costs])
  • डाइमेंशन टेबल की सभी पंक्तियों पर इवैल्यूएट करने के लिए ALL() उपयोग करें

$$ $$ $$

Region Total Costs Total Costs RANKX
Central $725,457.82 1
East $678,781.24 2
South $501,239.89 3
West $391,721.91 4
Power BI में DAX Functions

DAX में ऑपरेटर

कंपैरिजन ऑपरेटर
Operator Meaning
= Equal to
== Strict equal to
> Greater than
< Smaller than
>= Greater than or equal to
<= Smaller than or equal to
<> Not equal to
Power BI में DAX Functions

DAX में ऑपरेटर

कंपैरिजन ऑपरेटर
Operator Meaning
= Equal to
== Strict equal to
> Greater than
< Smaller than
>= Greater than or equal to
<= Smaller than or equal to
<> Not equal to
टेक्स्ट ऑपरेटर
Operator Meaning Example
& Concatenates text values [City]&", "&[State]
Power BI में DAX Functions

DAX में ऑपरेटर

कंपैरिजन ऑपरेटर
Operator Meaning
= Equal to
== Strict equal to
> Greater than
< Smaller than
>= Greater than or equal to
<= Smaller than or equal to
<> Not equal to
टेक्स्ट ऑपरेटर
Operator Meaning Example
& Concatenates text values [City]&", "&[State]
लॉजिकल ऑपरेटर
Operator Meaning Example
&& AND कंडिशन ([City] = "Bru") && ([Return] = "Yes"))
|| OR कंडिशन ([City] = "Bru") || ([Return] = "Yes"))
IN { } हर पंक्ति पर OR कंडिशन Product[Color] IN {"Red", "Blue", "Gold"}
Power BI में DAX Functions

Lesson[Knowledge] IN {"Poor", "Great", "Awesome!"}

Power BI में DAX Functions

Preparing Video For Download...